Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Using Versioned on a colum #96

Open
nikinjain1 opened this issue Jun 6, 2013 · 1 comment
Open

Using Versioned on a colum #96

nikinjain1 opened this issue Jun 6, 2013 · 1 comment

Comments

@nikinjain1
Copy link

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.

@nozpheratu
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants