Fix indentation here

This commit is contained in:
Santiago Pastorino 2010-12-03 22:46:45 -02:00
parent 3e84255942
commit a11ddf3ee2
1 changed files with 8 additions and 7 deletions

View File

@ -17,14 +17,15 @@ module ActiveRecord
end
private
# Handle *_before_type_cast for method_missing.
def attribute_before_type_cast(attribute_name)
if attribute_name == 'id'
read_attribute_before_type_cast(self.class.primary_key)
else
read_attribute_before_type_cast(attribute_name)
end
# Handle *_before_type_cast for method_missing.
def attribute_before_type_cast(attribute_name)
if attribute_name == 'id'
read_attribute_before_type_cast(self.class.primary_key)
else
read_attribute_before_type_cast(attribute_name)
end
end
end
end
end