Created
March 2, 2011 15:38
-
-
Save compressed/851107 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Widget < Ohm::Model | |
include Ohm::Callbacks | |
attribute :name | |
index :name | |
def validate | |
assert_present :name | |
end | |
protected | |
def before_validate | |
debugger | |
#downcase email | |
puts 'why why why' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment