lib/action_controller/callbacks.rb
# Checks to see if the action (ie the controller method) we are trying to call has a method that should run before it.
# DO run a callback if the action is in the callback's options.only
# DO run the callback if it should be called before all actions
# DONT run a callback if the action being called doesn't appear in the callback's options.only
Checks to see if the action  we are trying to call has a method that should run before it.
DO run a callback if the action is in the callback's options.only
DO run the callback if it should be called before all actions
DONT run a callback if the action being called doesn't appear in the callback's options.only
Checks to see if the action we are trying to call has a method that should run before it . DO run a callback if the action is in the callback ' s options . only DO run the callback if it should be called before all actions DONT run a callback if the action being called doesn ' t appear in the callback ' s options . only
def match?(action)
        if @options[:only]
          @options[:only].include? action.to_sym
        else
          true
        end
      end
def match? ( action ) if @options [ :only ] @options [ :only ] . include? action . to_sym else true end end
Checks to see if the action (ie the controller method) we are trying to call has a method that should run before it.
Checks to see if the action ( ie the controller method ) we are trying to call has a method that should run before it .
action