diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-08 23:26:15 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-08 23:26:15 -0300 |
commit | 2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03 (patch) | |
tree | da295dce0c09b80e39afaa26a2d7eda07ebce078 | |
parent | 8c0ba7b69b0952e1f71425ad19e97de8f4dc1be8 (diff) | |
download | rails-2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03.tar.gz rails-2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03.tar.bz2 rails-2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03.zip |
Fix the indentation
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 8ddf5cfa66..e88c5d17cb 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -367,21 +367,22 @@ module ActiveRecord protected - def actual_source_reflection # FIXME: this is a horrible name - self - end + def actual_source_reflection # FIXME: this is a horrible name + self + end private - def calculate_constructable(macro, options) - case macro - when :belongs_to - !options[:polymorphic] - when :has_one - !options[:through] - else - true + + def calculate_constructable(macro, options) + case macro + when :belongs_to + !options[:polymorphic] + when :has_one + !options[:through] + else + true + end end - end # Attempts to find the inverse association name automatically. # If it cannot find a suitable inverse association name, it returns |