rails/rails — pull request #14595 by gjaldon (2014-04-04 13:05:08+00:00)
Title: Don't read attributes before type cast when dup'ing

This PR is meant to address issue #14411

Changed the behavior of #dup so that it doesn't clone attributes before type casting. This way, the duplicate copies type casted attributes instead of the raw Postgres data type.

Let me know if there's anything else that needs done.

cc: @senny, @leods92