提交 05168067 编写于 作者: A Aaron Patterson

remove some lasigns

上级 3ce3c219
......@@ -24,14 +24,14 @@ def reset_primary_key #:nodoc:
end
def get_primary_key(base_name) #:nodoc:
key = 'id'
case primary_key_prefix_type
when :table_name
key = base_name.to_s.foreign_key(false)
base_name.to_s.foreign_key(false)
when :table_name_with_underscore
key = base_name.to_s.foreign_key
base_name.to_s.foreign_key
else
'id'
end
key
end
# Sets the name of the primary key column to use to the given value,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册