I'm not clear what get_primary_key(base_name) does.  It is :nodoc:

That being said, table_name_for pluralizes and does different things based on the value of `pluralize_table_names`.  column_name_for singularizes.  I went with not changing the logic.