diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 20:10:33 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-11-29 20:13:37 +0000 |
commit | 8df787d42890017f182c1ac6cb082317c255a456 (patch) | |
tree | 55f662b09ad6d8e941999f3a6f98011044d413f0 /activerecord/lib | |
parent | f3c84dc31692204aacac3c125dcfcc986fd961a0 (diff) | |
download | rails-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.rb | 4 |
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 |