diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-20 09:33:58 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-20 09:33:58 -0800 |
commit | 79f7bbb0032bdd1200110348d7cd43af986ee6f3 (patch) | |
tree | 2ab9999d1db7aa563bcb397d9164bbc76a3c3d02 | |
parent | a2d0b9945740ebd6a21debf2449e6522977d510c (diff) | |
download | rails-79f7bbb0032bdd1200110348d7cd43af986ee6f3.tar.gz rails-79f7bbb0032bdd1200110348d7cd43af986ee6f3.tar.bz2 rails-79f7bbb0032bdd1200110348d7cd43af986ee6f3.zip |
Revert "just use an alias. The target method is public, so make this one public"
This reverts commit be7d2248e9505983d1aacf0b33c657e6e3ddd9db.
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/read.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index a7c86f8f74..964c4123ef 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -126,7 +126,10 @@ module ActiveRecord self.class.type_cast_attribute(attr_name, @attributes, @attributes_cache) end - alias :attribute :read_attribute + private + def attribute(attribute_name) + read_attribute(attribute_name) + end end end end |