Merge branch 'new_callbacks'
This commit is contained in:
commit
7bae8acc36
8 changed files with 344 additions and 228 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue