diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-03 22:46:45 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-04 17:50:02 -0200 |
commit | a11ddf3ee2d2db0378c241a1fd0648b74ff48e20 (patch) | |
tree | ff74625c8c0810738da6b6838c9e0f0210f7e43b /activerecord | |
parent | 3e842559427746eb9051ce5ee3cd36caeff303a3 (diff) | |
download | rails-a11ddf3ee2d2db0378c241a1fd0648b74ff48e20.tar.gz rails-a11ddf3ee2d2db0378c241a1fd0648b74ff48e20.tar.bz2 rails-a11ddf3ee2d2db0378c241a1fd0648b74ff48e20.zip |
Fix indentation here
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/before_type_cast.rb | 15 |
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 |