提交 de21da50 编写于 作者: A Andrew White

Merge pull request #8800 from acapilleri/primary_key

refactor reset_primary_key and change !blank? to present? in get_primary...
......@@ -76,7 +76,7 @@ def reset_primary_key #:nodoc:
end
def get_primary_key(base_name) #:nodoc:
return 'id' unless base_name && !base_name.blank?
return 'id' if base_name.blank?
case primary_key_prefix_type
when :table_name
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册