diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-22 14:54:45 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-22 14:54:45 -0300 |
commit | 91bd6121d8590268700476d57080ccfcaf6c7c44 (patch) | |
tree | eb178fc64bc85bec4769f6074ce51fdbf9cf3ac6 /activerecord/lib/active_record | |
parent | 50e47a3711101e4294334ab27b7502dfd0228ef2 (diff) | |
parent | af16fd57933e092067b8e1ff13e2553fc758be27 (diff) | |
download | rails-91bd6121d8590268700476d57080ccfcaf6c7c44.tar.gz rails-91bd6121d8590268700476d57080ccfcaf6c7c44.tar.bz2 rails-91bd6121d8590268700476d57080ccfcaf6c7c44.zip |
Merge pull request #15932 from joseluistorres/issue-11957-uuids
adding the exception RecordNotFound to UUID find #11957
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb index dd97393eac..033e0324bb 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/uuid.rb @@ -12,6 +12,8 @@ module ActiveRecord [a-fA-F0-9]{4}-? [a-fA-F0-9]{4}-?\}?\z}x + alias_method :type_cast_for_database, :type_cast_from_database + def type :uuid end |