Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2013 00:12
Show Gist options
  • Save anonymous/4974320 to your computer and use it in GitHub Desktop.
Save anonymous/4974320 to your computer and use it in GitHub Desktop.
class MyModel < ActiveRecord::Base
attr_accessible :my_attribute
def my_attribute=(value)
# do something else here...
self.my_attribute = value
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment