Skip to content

Commit

Permalink
fixing bad merge: adding bind substitution visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Feb 22, 2012
1 parent f290d6f commit 967b300
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# encoding: utf-8
require 'arel/visitors/bind_visitor'

gem 'mysql2', '~> 0.3.10'
require 'mysql2'
Expand Down Expand Up @@ -129,6 +130,10 @@ def initialize(connection, logger, connection_options, config)
configure_connection
end

class BindSubstitution < Arel::Visitors::MySQL # :nodoc:
include Arel::Visitors::BindVisitor
end

def self.visitor_for(pool) # :nodoc:
BindSubstitution.new pool
end
Expand Down

0 comments on commit 967b300

Please sign in to comment.