aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-29 20:10:33 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-29 20:13:37 +0000
commit8df787d42890017f182c1ac6cb082317c255a456 (patch)
tree55f662b09ad6d8e941999f3a6f98011044d413f0 /activerecord/lib
parentf3c84dc31692204aacac3c125dcfcc986fd961a0 (diff)
downloadrails-8df787d42890017f182c1ac6cb082317c255a456.tar.gz
rails-8df787d42890017f182c1ac6cb082317c255a456.tar.bz2
rails-8df787d42890017f182c1ac6cb082317c255a456.zip
Deprecated `define_attr_method` in `ActiveModel::AttributeMethods`
This only existed to support methods like `set_table_name` in Active Record, which are themselves being deprecated.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index b178419657..8cef066608 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -594,13 +594,13 @@ module ActiveRecord #:nodoc:
"to get the default #{property} where you would have called `original_#{property}`."
)
- define_attr_method property, value, &block
+ define_attr_method property, value, false, &block
else
ActiveSupport::Deprecation.warn(
"Calling set_#{property} is deprecated. Please use `self.#{property} = 'the_name'` instead."
)
- define_attr_method property, value
+ define_attr_method property, value, false
end
end