mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix indentation here
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user