aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2010-09-05 21:20:54 -0300
committerJosé Valim <jose.valim@gmail.com>2010-09-06 13:39:55 +0200
commit9b610049bb4f73dbcdc670879683ec2a1a2ab780 (patch)
treef93f129985ed38eb8bd578ca52d16aae21192377 /activerecord/lib/active_record/callbacks.rb
parenta18b73b43c07d031c9a660bc119835dcb6db85cf (diff)
downloadrails-9b610049bb4f73dbcdc670879683ec2a1a2ab780.tar.gz
rails-9b610049bb4f73dbcdc670879683ec2a1a2ab780.tar.bz2
rails-9b610049bb4f73dbcdc670879683ec2a1a2ab780.zip
Cleanup deprecation warnings in active record
Signed-off-by: José Valim <jose.valim@gmail.com>
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: