method
merge
rails latest stable - Class:
ActiveSupport::Callbacks::Callback
merge(chain, new_options)public
No documentation available.
# File activesupport/lib/active_support/callbacks.rb, line 374
def merge(chain, new_options)
options = {
:if => @if.dup,
:unless => @unless.dup
}
options[:if].concat Array(new_options.fetch(:unless, []))
options[:unless].concat Array(new_options.fetch(:if, []))
self.class.build chain, @filter, @kind, options
end