aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Moore <kevin@thinkpixellab.com>2012-04-03 15:48:01 -0700
committerKevin Moore <kevin@thinkpixellab.com>2012-04-03 17:39:53 -0700
commit6f19262719cecf2a622056b1c7e08a4527dcac22 (patch)
treea335f385ebd39f5ee86f93244b3664f619c042b6
parent8e315b0e0a551fcb09e73b2b704492923d4806f3 (diff)
downloadrails-6f19262719cecf2a622056b1c7e08a4527dcac22.tar.gz
rails-6f19262719cecf2a622056b1c7e08a4527dcac22.tar.bz2
rails-6f19262719cecf2a622056b1c7e08a4527dcac22.zip
Remove unused 'cast_code' variable
-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))}