aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-20 08:27:51 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-20 08:27:51 -0800
commita5bf96ab9b6918af77e8cde5be6e1202e33ac021 (patch)
tree5372d9625ad2fdf7ea8d101b63167f9d5575f8cb
parent82a54324f615ae999c811b67701fd269b54d9fe4 (diff)
parent70991945ccdaf0a6839ba8e68bc95f90e695c8b5 (diff)
downloadrails-a5bf96ab9b6918af77e8cde5be6e1202e33ac021.tar.gz
rails-a5bf96ab9b6918af77e8cde5be6e1202e33ac021.tar.bz2
rails-a5bf96ab9b6918af77e8cde5be6e1202e33ac021.zip
Merge pull request #9342 from hone/db_migrate_with_database_url
Fix ActiveRecord::ConnectionAdapters::ConnectionSpecification::ResolverTest
-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