Skip to content

Instantly share code, notes, and snippets.

@elektronaut
Created January 20, 2014 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elektronaut/8520306 to your computer and use it in GitHub Desktop.
Save elektronaut/8520306 to your computer and use it in GitHub Desktop.
class MyModel < ActiveRecord::Base
def foo=(foo)
if foo == "thing"
self.bar = "a thing was found"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment