Permalink
Browse files

Fix the indentation

  • Loading branch information...
1 parent 8c0ba7b commit 2f6cc48b34f892d7608cb68e4cd0b7f5aabb5d03 @rafaelfranca rafaelfranca committed Oct 9, 2013
Showing with 13 additions and 12 deletions.
  1. +13 −12 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

0 comments on commit 2f6cc48

Please sign in to comment.