aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rw-r--r--activerecord/lib/active_record/callbacks.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index fd71d7db4e..49671a1042 100644
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -246,16 +246,6 @@ module ActiveRecord
define_model_callbacks :save, :create, :update, :destroy
end
- module ClassMethods
- def method_added(meth)
- super
- if CALLBACKS.include?(meth.to_sym)
- ActiveSupport::Deprecation.warn("Base##{meth} has been deprecated, please use Base.#{meth} :method instead", caller[0,1])
- send(meth.to_sym, meth.to_sym)
- end
- end
- end
-
def destroy #:nodoc:
_run_destroy_callbacks { super }
end
@@ -264,13 +254,6 @@ module ActiveRecord
_run_touch_callbacks { super }
end
- def deprecated_callback_method(symbol) #:nodoc:
- if respond_to?(symbol, true)
- ActiveSupport::Deprecation.warn("Overwriting #{symbol} in your models has been deprecated, please use Base##{symbol} :method_name instead")
- send(symbol)
- end
- end
-
private
def create_or_update #:nodoc: