vestal_versions
vestal_versions copied to clipboard
Using Versioned on a colum
I need to use Versioned on a column in my model.
Say I have member model with name, address and password fields
If I need to use Versioned opition only on password fields, then what is the syntax I need to follow to implement that.
@nikinjain1 You can use the condition symbol when you call versioned
in your model, something like:
versioned :if => :password_changed?
Should do what you need.