diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-07-15 10:21:18 -0700 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-07-15 10:21:18 -0700 |
commit | d7a1f98d8c237aabcd5a3f315fe00c7a43836209 (patch) | |
tree | 974f79e35beac99225114db5b881586441af0a87 /activerecord/lib/active_record | |
parent | ea7620dce2127ab913dbaf7a4d369fd382623346 (diff) | |
parent | 0d4075fb47db388f1365ce4784401fa4454a2499 (diff) | |
download | rails-d7a1f98d8c237aabcd5a3f315fe00c7a43836209.tar.gz rails-d7a1f98d8c237aabcd5a3f315fe00c7a43836209.tar.bz2 rails-d7a1f98d8c237aabcd5a3f315fe00c7a43836209.zip |
Merge pull request #11282 from arunagw/deprecation-removed-attribute-missing-activerecord
Remove deprecated `attribute_missing`.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index 0b96f88197..208da2cb77 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -176,20 +176,6 @@ module ActiveRecord end end - def attribute_missing(match, *args, &block) # :nodoc: - if self.class.columns_hash[match.attr_name] - ActiveSupport::Deprecation.warn( - "The method `#{match.method_name}', matching the attribute `#{match.attr_name}' has " \ - "dispatched through method_missing. This shouldn't happen, because `#{match.attr_name}' " \ - "is a column of the table. If this error has happened through normal usage of Active " \ - "Record (rather than through your own code or external libraries), please report it as " \ - "a bug." - ) - end - - super - end - # A Person object with a name attribute can ask <tt>person.respond_to?(:name)</tt>, # <tt>person.respond_to?(:name=)</tt>, and <tt>person.respond_to?(:name?)</tt> # which will all return +true+. It also define the attribute methods if they have |