Browse files

run the damn tests @tenderlove

  • Loading branch information...
1 parent 3281d5a commit cf3840e364161ae0206bf76051a2d21cc9e12e95 @tenderlove tenderlove committed Jan 17, 2014
View
2 activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -21,7 +21,7 @@ def to_sql(arel, binds = [])
# This is used in the StatementCache object. It returns an object that
# can be used to query the database repeatedly.
def cacheable_query(arel) # :nodoc:
- ActiveRecord::StatementCache.query self, visitor, arel.ast
+ ActiveRecord::StatementCache.query visitor, arel.ast
end
# Returns an ActiveRecord::Result instance.
View
2 activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
@@ -45,7 +45,7 @@ def initialize(connection, logger, connection_options, config)
end
def cacheable_query(arel)
- ActiveRecord::StatementCache.partial_query self, visitor, arel.ast
+ ActiveRecord::StatementCache.partial_query visitor, arel.ast
end
MAX_INDEX_LENGTH_FOR_UTF8MB4 = 191

0 comments on commit cf3840e

Please sign in to comment.