rails/rails — pull request #9734 by choudhuryanupam (2013-03-15 14:04:09+00:00)
Title: Refactored to reuse #primary_key? method

The #primary_key? method has already been written to check the type is primary key or not. Modified the method li'l bit to reuse in other places.