aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-12-03 22:46:45 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-12-04 17:50:02 -0200
commita11ddf3ee2d2db0378c241a1fd0648b74ff48e20 (patch)
treeff74625c8c0810738da6b6838c9e0f0210f7e43b /activerecord/lib/active_record/attribute_methods
parent3e842559427746eb9051ce5ee3cd36caeff303a3 (diff)
downloadrails-a11ddf3ee2d2db0378c241a1fd0648b74ff48e20.tar.gz
rails-a11ddf3ee2d2db0378c241a1fd0648b74ff48e20.tar.bz2
rails-a11ddf3ee2d2db0378c241a1fd0648b74ff48e20.zip
Fix indentation here
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r--activerecord/lib/active_record/attribute_methods/before_type_cast.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb
index f7e5ef853f..bde11d0494 100644
--- a/activerecord/lib/active_record/attribute_methods/before_type_cast.rb
+++ b/activerecord/lib/active_record/attribute_methods/before_type_cast.rb
@@ -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