提交 2f6cc48b 编写于 作者: R Rafael Mendonça França

Fix the indentation

上级 8c0ba7b6
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册