diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-29 23:18:24 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-29 23:18:24 +0000 |
commit | d41ea51d396cb652043f82a64173cf7ea9827b99 (patch) | |
tree | 382865ec1789206c5b72dbcaeed124e388121336 /activerecord | |
parent | 63eb9cae1436952d85431296e4600293b1c873c0 (diff) | |
download | rails-d41ea51d396cb652043f82a64173cf7ea9827b99.tar.gz rails-d41ea51d396cb652043f82a64173cf7ea9827b99.tar.bz2 rails-d41ea51d396cb652043f82a64173cf7ea9827b99.zip |
Ruby 1.9 compat for instance method check in Mysql adapter.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index a3195fae84..c73028aca4 100755 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -33,7 +33,8 @@ module MysqlCompat #:nodoc: end_eval end - unless target.instance_methods.include?('all_hashes') + unless target.instance_methods.include?('all_hashes') || + target.instance_methods.include?(:all_hashes) raise "Failed to defined #{target.name}#all_hashes method. Mysql::VERSION = #{Mysql::VERSION.inspect}" end end |