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