diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2015-01-03 14:58:17 +0000 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2015-01-03 14:58:17 +0000 |
commit | 4b9dba99d65b1bd27576b16a68d7d18522bae9ea (patch) | |
tree | 4672dd2377a4e4ef71992c5478f2606f5d86e371 /actionpack/lib/abstract_controller/callbacks.rb | |
parent | 02e72a49d1c99084fef2c78c3a194e03b879099d (diff) | |
parent | 7cc145ec65167084e8b05d9462eaf94534fa0168 (diff) | |
download | rails-4b9dba99d65b1bd27576b16a68d7d18522bae9ea.tar.gz rails-4b9dba99d65b1bd27576b16a68d7d18522bae9ea.tar.bz2 rails-4b9dba99d65b1bd27576b16a68d7d18522bae9ea.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'actionpack/lib/abstract_controller/callbacks.rb')
-rw-r--r-- | actionpack/lib/abstract_controller/callbacks.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/actionpack/lib/abstract_controller/callbacks.rb b/actionpack/lib/abstract_controller/callbacks.rb index ca5c80cd71..0d2f18279b 100644 --- a/actionpack/lib/abstract_controller/callbacks.rb +++ b/actionpack/lib/abstract_controller/callbacks.rb @@ -22,10 +22,11 @@ module AbstractController end module ClassMethods - # 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" }. + # If +:only+ or +:except+ are used, convert the options into the + # +:if+ and +:unless+ options of ActiveSupport::Callbacks. + # + # The basic idea is that <tt>:only => :index</tt> gets converted to + # <tt>:if => proc {|c| c.action_name == "index" }</tt>. # # ==== Options # * <tt>only</tt> - The callback should be run only for this action |