aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-04-09 10:05:32 -0700
committerXavier Noria <fxn@hashref.com>2012-04-09 10:05:32 -0700
commitdab76b11f5d9d8735e963f18549f3290aa33b4e1 (patch)
treee6a436291808c997f14fcfa300adf026dfb65bd8 /activerecord/lib
parentb125db84a4353a7f9c4bc93658a987653a602bbe (diff)
parent6f19262719cecf2a622056b1c7e08a4527dcac22 (diff)
downloadrails-dab76b11f5d9d8735e963f18549f3290aa33b4e1.tar.gz
rails-dab76b11f5d9d8735e963f18549f3290aa33b4e1.tar.bz2
rails-dab76b11f5d9d8735e963f18549f3290aa33b4e1.zip
Merge pull request #5725 from kevmoo/remove_unused_castcode
Remove unused castcode
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/attribute_methods/read.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb
index 9b3724777a..a438de7c28 100644
--- a/activerecord/lib/active_record/attribute_methods/read.rb
+++ b/activerecord/lib/active_record/attribute_methods/read.rb
@@ -67,8 +67,6 @@ module ActiveRecord
# we first define with the __temp__ identifier, and then use alias method to
# rename it to what we want.
def define_method_attribute(attr_name)
- cast_code = attribute_cast_code(attr_name)
-
generated_attribute_methods.module_eval <<-STR, __FILE__, __LINE__ + 1
def __temp__
#{internal_attribute_access_code(attr_name, attribute_cast_code(attr_name))}