aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2013-02-21 03:01:04 +1100
committerTerence Lee <hone02@gmail.com>2013-02-21 03:21:41 +1100
commit70991945ccdaf0a6839ba8e68bc95f90e695c8b5 (patch)
treec0133fb0bb49ea3336bc0703bb7958ef18bec8cf /activerecord
parent3a0b6c8e135e268c1550f93db1b63ba27457dec2 (diff)
downloadrails-70991945ccdaf0a6839ba8e68bc95f90e695c8b5.tar.gz
rails-70991945ccdaf0a6839ba8e68bc95f90e695c8b5.tar.bz2
rails-70991945ccdaf0a6839ba8e68bc95f90e695c8b5.zip
make type_cast_value a class level method
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/connection_specification.rb2
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