Permalink
Browse files

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
  • Loading branch information...
jeremy committed Sep 29, 2007
1 parent 63eb9ca commit d41ea51d396cb652043f82a64173cf7ea9827b99
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -33,7 +33,8 @@ def all_hashes
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

0 comments on commit d41ea51

Please sign in to comment.