From 38d1a4aa09fada8bf5797b92bb97e96857448482 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 21 Jun 2006 20:40:14 +0000 Subject: alias_method_chain preserves method punctuation so foo, foo?, and foo! may be chained with the same feature. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 29c2b79226..03ad90d3e5 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -218,7 +218,7 @@ module ActiveRecord base.extend ClassMethods base.class_eval do alias_method_chain :save, :validation - alias_method_chain :save!, :validation! + alias_method_chain :save!, :validation alias_method_chain :update_attribute, :validation_skipping end end -- cgit v1.2.3