_normalize_callback_options

_normalize_callback_options(options)
Instance Public methods

If :only or :except are used, convert the options into the :unless and :if options of ActiveSupport::Callbacks. The basic idea is that :only => :index gets converted to :if => proc {|c| c.action_name == âindexâ }.

Options

  • only - The callback should be run only for this action

  • except - The callback should be run for all actions except this action

doc_ruby_on_rails
2015-06-20 00:00:00
Comments
Leave a Comment

Please login to continue.