diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-10-19 16:17:48 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-10-23 12:51:04 -0400 |
commit | c792354adcbf8c966f274915c605c6713b840548 (patch) | |
tree | 3b8aa33b393e3be157fb2ebf1183785f7f644534 /activerecord/lib/active_record/callbacks.rb | |
parent | 216965e926d30863a6338351fd13e939c3e72dde (diff) | |
download | rails-c792354adcbf8c966f274915c605c6713b840548.tar.gz rails-c792354adcbf8c966f274915c605c6713b840548.tar.bz2 rails-c792354adcbf8c966f274915c605c6713b840548.zip |
Remove deprecated `:if` and `:unless` string filter for callbacks
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rw-r--r-- | activerecord/lib/active_record/callbacks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb index ac1070e65b..9ab2780760 100644 --- a/activerecord/lib/active_record/callbacks.rb +++ b/activerecord/lib/active_record/callbacks.rb @@ -98,9 +98,9 @@ module ActiveRecord # == Types of callbacks # # There are four types of callbacks accepted by the callback macros: Method references (symbol), callback objects, - # inline methods (using a proc), and inline eval methods (using a string). Method references and callback objects + # inline methods (using a proc). Method references and callback objects # are the recommended approaches, inline methods using a proc are sometimes appropriate (such as for - # creating mix-ins), and inline eval methods are deprecated. + # creating mix-ins). # # The method reference callbacks work by specifying a protected or private method available in the object, like this: # |