KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to create a before_save callback that only gets run if there have been changes to any (but not necessarily all) of the three fields (street, city, state). How do you do this? Thanks user.rb class User before_save :run_test_method, :if => street_changed? ... end
Tags (comma-separated)
Save Edits
Cancel