Open nikinjain1 opened 11 years ago
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
versioned :if => :password_changed?
Should do what you need.
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.