diff options
author | Terence Lee <hone02@gmail.com> | 2013-02-21 03:01:04 +1100 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2013-02-21 03:21:41 +1100 |
commit | 70991945ccdaf0a6839ba8e68bc95f90e695c8b5 (patch) | |
tree | c0133fb0bb49ea3336bc0703bb7958ef18bec8cf | |
parent | 3a0b6c8e135e268c1550f93db1b63ba27457dec2 (diff) | |
download | rails-70991945ccdaf0a6839ba8e68bc95f90e695c8b5.tar.gz rails-70991945ccdaf0a6839ba8e68bc95f90e695c8b5.tar.bz2 rails-70991945ccdaf0a6839ba8e68bc95f90e695c8b5.zip |
make type_cast_value a class level method
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/connection_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |