Sha256: 9b1c7ec7b49de7f9fcb6167c1bf246ca953f0761b2f2428d18431a007d1bf1d4

Contents?: true

Size: 383 Bytes

Versions: 64

Compression:

Stored size: 383 Bytes

Contents

module Arel
  module Visitors
    module BindVisitor
      def initialize target
        @block = nil
        super
      end

      def accept node, &block
        @block = block if block_given?
        super
      end

      private
      def visit_Arel_Nodes_BindParam o
        if @block
          @block.call
        else
          super
        end
      end
    end
  end
end

Version data entries

64 entries across 51 versions & 13 rubygems

Version Path
challah-0.7.0.pre2 vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
challah-0.7.0.pre vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
challah-0.6.2 vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
initforthe-cookies-0.0.1 vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
rails-uploader-0.0.4 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
challah-0.6.1 vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
challah-0.6.0 vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
challah-0.5.4 vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb
challah-0.5.3 vendor/bundle/gems/arel-3.0.2/lib/arel/visitors/bind_visitor.rb