From af16fd57933e092067b8e1ff13e2553fc758be27 Mon Sep 17 00:00:00 2001 From: JoseLuis Torres Date: Thu, 26 Jun 2014 22:52:01 -0500 Subject: adding the exception RecordNotFound to UUID find --- .../lib/active_record/connection_adapters/postgresql/oid/uuid.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3