From 70991945ccdaf0a6839ba8e68bc95f90e695c8b5 Mon Sep 17 00:00:00 2001 From: Terence Lee Date: Thu, 21 Feb 2013 03:01:04 +1100 Subject: make type_cast_value a class level method --- .../lib/active_record/connection_adapters/connection_specification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/connection_specification.rb b/activerecord/lib/active_record/connection_adapters/connection_specification.rb index 5b60185f53..de418eab14 100644 --- a/activerecord/lib/active_record/connection_adapters/connection_specification.rb +++ b/activerecord/lib/active_record/connection_adapters/connection_specification.rb @@ -97,7 +97,7 @@ module ActiveRecord spec end - def type_cast_value(value) + def self.type_cast_value(value) case value when SIMPLE_INT value.to_i -- cgit v1.2.3