aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods/read.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-12-01 11:24:30 +0000
committerJon Leighton <j@jonathanleighton.com>2011-12-01 23:41:51 +0000
commit3a40d386194cf6d572b145cea0da57c286204554 (patch)
tree2d8d28049fa7baef3b0dd440dcbcde315c4ed6bb /activerecord/lib/active_record/attribute_methods/read.rb
parent3dcb127109428c1948a9f3bcad7101bd8a7f4d8a (diff)
downloadrails-3a40d386194cf6d572b145cea0da57c286204554.tar.gz
rails-3a40d386194cf6d572b145cea0da57c286204554.tar.bz2
rails-3a40d386194cf6d572b145cea0da57c286204554.zip
Get rid of the underscore versions of attribute methods!
This makes me happy!
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods/read.rb')
-rw-r--r--activerecord/lib/active_record/attribute_methods/read.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb
index 59e57135f9..8eec06302a 100644
--- a/activerecord/lib/active_record/attribute_methods/read.rb
+++ b/activerecord/lib/active_record/attribute_methods/read.rb
@@ -61,8 +61,6 @@ module ActiveRecord
def self.cast_#{attr_name}(v)
#{cast_code}
end
-
- alias _#{attr_name} #{attr_name}
STR
else
generated_attribute_methods.module_eval do
@@ -73,8 +71,6 @@ module ActiveRecord
singleton_class.send(:define_method, "cast_#{attr_name}") do |v|
eval(cast_code)
end
-
- alias_method("_#{attr_name}", attr_name)
end
end
end