Skip to content

Commit

Permalink
change unless !blank? to if blank? in get_primary_key
Browse files Browse the repository at this point in the history
  • Loading branch information
acapilleri committed Jan 8, 2013
1 parent e63e280 commit d9a9d31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9a9d31

Please sign in to comment.