Permalink
Browse files

Merge pull request #5725 from kevmoo/remove_unused_castcode

Remove unused castcode
  • Loading branch information...
2 parents b125db8 + 6f19262 commit dab76b11f5d9d8735e963f18549f3290aa33b4e1 @fxn fxn committed Apr 9, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 activerecord/lib/active_record/attribute_methods/read.rb
@@ -67,8 +67,6 @@ def type_cast_attribute(attr_name, attributes, cache = {}) #:nodoc:
# 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))}

0 comments on commit dab76b1

Please sign in to comment.