Sha256: 702ec8c8017b6e2ea5fd117d0a6f23f4a2203d0b3a9cd4beaada6b4dbab5dbe8

Contents?: true

Size: 335 Bytes

Versions: 7

Compression:

Stored size: 335 Bytes

Contents

module Arel
  module Visitors
    class SQLite < Arel::Visitors::ToSql
      private

      # Locks are not supported in SQLite
      def visit_Arel_Nodes_Lock o, a
      end

      def visit_Arel_Nodes_SelectStatement o, a
        o.limit = Arel::Nodes::Limit.new(-1) if o.offset && !o.limit
        super
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/visitors/sqlite.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/visitors/sqlite.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/visitors/sqlite.rb
arel-5.0.1.20140414130214 lib/arel/visitors/sqlite.rb
arel-4.0.2 lib/arel/visitors/sqlite.rb
arel-5.0.0 lib/arel/visitors/sqlite.rb
arel-4.0.1 lib/arel/visitors/sqlite.rb