Sha256: c03b4a9f2e6072da1e39a5538ac997fddd729b5ca746ea39cdec08985120db07

Contents?: true

Size: 296 Bytes

Versions: 7

Compression:

Stored size: 296 Bytes

Contents

module Arel
  class Having < Compound
    attributes :relation, :havings
    deriving :==

    def initialize(relation, *havings, &block)
      @relation = relation
      @havings = (havings + arguments_from_block(relation, &block)) \
        .collect { |g| g.bind(relation) }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arel-0.3.3 lib/arel/algebra/relations/operations/having.rb
arel-0.3.2 lib/arel/algebra/relations/operations/having.rb
arel-0.3.1 lib/arel/algebra/relations/operations/having.rb
arel-0.3.0 lib/arel/algebra/relations/operations/having.rb
arel-0.2.1 lib/arel/algebra/relations/operations/having.rb
arel-0.2.0 lib/arel/algebra/relations/operations/having.rb
arel-0.2.pre lib/arel/algebra/relations/operations/having.rb