diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-01-08 19:45:58 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-04 20:48:29 +0900 |
commit | f8d3fed1679b487485e32b52b15fe154efe0f10c (patch) | |
tree | f84c8c05beff0e86e00aca4357aa107e6807854d /activemodel/test | |
parent | d13bc5df902a2c82c3096b627830be97acbedf50 (diff) | |
download | rails-f8d3fed1679b487485e32b52b15fe154efe0f10c.tar.gz rails-f8d3fed1679b487485e32b52b15fe154efe0f10c.tar.bz2 rails-f8d3fed1679b487485e32b52b15fe154efe0f10c.zip |
Remove deprecated passing string to define callback
And raise `ArgumentError` when passing string to define callback.
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/callbacks_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/callbacks_test.rb b/activemodel/test/cases/callbacks_test.rb index 63b6c56f8c..a6f0948376 100644 --- a/activemodel/test/cases/callbacks_test.rb +++ b/activemodel/test/cases/callbacks_test.rb @@ -27,7 +27,7 @@ class CallbacksTest < ActiveModel::TestCase false end - ActiveSupport::Deprecation.silence { after_create "@callbacks << :final_callback" } + after_create { |model| model.callbacks << :final_callback } def initialize(options = {}) @callbacks = [] |