diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-07 10:46:16 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-07 10:46:16 -0300 |
commit | 64f4930afc2cd9d1a607c38099c3482b420a0512 (patch) | |
tree | 86a20fffbeb62df68a34411ddd30b203b1c7a117 /activesupport/lib | |
parent | 9b19861ec0954c5bbbd8b71d33439360a0148d6b (diff) | |
download | rails-64f4930afc2cd9d1a607c38099c3482b420a0512.tar.gz rails-64f4930afc2cd9d1a607c38099c3482b420a0512.tar.bz2 rails-64f4930afc2cd9d1a607c38099c3482b420a0512.zip |
Document that string in if and unless option of callbacks are deprecated
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index ab37e128e9..9a2be1afc0 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -658,12 +658,12 @@ module ActiveSupport # # ===== Options # - # * <tt>:if</tt> - A symbol, a string or an array of symbols and strings, + # * <tt>:if</tt> - A symbol, a string (deprecated) or an array of symbols, # each naming an instance method or a proc; the callback will be called # only when they all return a true value. - # * <tt>:unless</tt> - A symbol, a string or an array of symbols and - # strings, each naming an instance method or a proc; the callback will - # be called only when they all return a false value. + # * <tt>:unless</tt> - A symbol, a string (deprecated) or an array of symbols, + # each naming an instance method or a proc; the callback will be called + # only when they all return a false value. # * <tt>:prepend</tt> - If +true+, the callback will be prepended to the # existing chain rather than appended. def set_callback(name, *filter_list, &block) |