Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Foo
- def before_validation_foo
- ...
- true
- end
- def self.included(base)
- base.before_validation :before_validation_foo
- end
- end
- # model
- include Foo
- def bar
- ...
- end
- before_validation :bar
- ## before_validation_foo never gets called
Add Comment
Please, Sign In to add comment