diff options
author | Kevin Moore <kevin@thinkpixellab.com> | 2012-04-03 15:48:01 -0700 |
---|---|---|
committer | Kevin Moore <kevin@thinkpixellab.com> | 2012-04-03 17:39:53 -0700 |
commit | 6f19262719cecf2a622056b1c7e08a4527dcac22 (patch) | |
tree | a335f385ebd39f5ee86f93244b3664f619c042b6 /activerecord/lib/active_record/attribute_methods | |
parent | 8e315b0e0a551fcb09e73b2b704492923d4806f3 (diff) | |
download | rails-6f19262719cecf2a622056b1c7e08a4527dcac22.tar.gz rails-6f19262719cecf2a622056b1c7e08a4527dcac22.tar.bz2 rails-6f19262719cecf2a622056b1c7e08a4527dcac22.zip |
Remove unused 'cast_code' variable
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/read.rb | 2 |
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))} |