Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Source for the new method
- # File activesupport/lib/active_support/callbacks.rb, line 136
- def initialize(kind, method, options = {})
- @kind = kind
- @method = method
- @identifier = options[:identifier]
- @options = options
- end
- ## Source for the build method
- # File activesupport/lib/active_support/callbacks.rb, line 80
- def self.build(kind, *methods, &block)
- methods, options = extract_options(*methods, &block)
- methods.map! { |method| Callback.new(kind, method, options) }
- new(methods)
- end
Add Comment
Please, Sign In to add comment