aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/reflection.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-08 23:26:15 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-10-08 23:26:15 -0300
commit2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03 (patch)
treeda295dce0c09b80e39afaa26a2d7eda07ebce078 /activerecord/lib/active_record/reflection.rb
parent8c0ba7b69b0952e1f71425ad19e97de8f4dc1be8 (diff)
downloadrails-2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03.tar.gz
rails-2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03.tar.bz2
rails-2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03.zip
Fix the indentation
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
-rw-r--r--activerecord/lib/active_record/reflection.rb25
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