From 2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Tue, 8 Oct 2013 23:26:15 -0300 Subject: [PATCH] Fix the indentation --- activerecord/lib/active_record/reflection.rb | 25 ++++++++++---------- 1 file 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 @@ def polymorphic? 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 -- GitLab