Flowdock
method

merge

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActiveSupport::Callbacks::Callback
merge(chain, new_options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.