Merge branch 'new_callbacks'

This commit is contained in:
Peter Gumeson 2009-07-18 23:37:16 -07:00
commit 7bae8acc36
8 changed files with 344 additions and 228 deletions

View file

@ -35,10 +35,10 @@ class WithCastedCallBackModel < Hash
property :run_before_validate
property :run_after_validate
validate_callback :before do |object|
before_validate do |object|
object.run_before_validate = true
end
validate_callback :after do |object|
after_validate do |object|
object.run_after_validate = true
end
end