diff options
| author | yui-knk <spiketeika@gmail.com> | 2015-12-15 21:12:16 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <kaneko.yuichiro@moneyforward.co.jp> | 2015-12-16 19:56:20 +0900 |
| commit | 21f4017fd904532ebe4964481567d69636a711cf (patch) | |
| tree | b8e28d0a5b39f9db1b424df4d0821cf34aa70352 /activerecord/test | |
| parent | 2de7385cef62ad12cef5bcfe1de18c4662072344 (diff) | |
| download | rails-21f4017fd904532ebe4964481567d69636a711cf.tar.gz rails-21f4017fd904532ebe4964481567d69636a711cf.tar.bz2 rails-21f4017fd904532ebe4964481567d69636a711cf.zip | |
Deprecate passing string to define callback.
Diffstat (limited to 'activerecord/test')
| -rw-r--r-- | activerecord/test/cases/callbacks_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/callbacks_test.rb b/activerecord/test/cases/callbacks_test.rb index 73ac30e547..4f70ae3a1d 100644 --- a/activerecord/test/cases/callbacks_test.rb +++ b/activerecord/test/cases/callbacks_test.rb @@ -33,7 +33,7 @@ class CallbackDeveloper < ActiveRecord::Base ActiveRecord::Callbacks::CALLBACKS.each do |callback_method| next if callback_method.to_s =~ /^around_/ define_callback_method(callback_method) - send(callback_method, callback_string(callback_method)) + ActiveSupport::Deprecation.silence { send(callback_method, callback_string(callback_method)) } send(callback_method, callback_proc(callback_method)) send(callback_method, callback_object(callback_method)) send(callback_method) { |model| model.history << [callback_method, :block] } |
