Sha256: 09dbfcbb417f5fbdf34be2e13704cadf18f1063f61813cc52f13dc64a3cf479b

Contents?: true

Size: 643 Bytes

Versions: 11

Compression:

Stored size: 643 Bytes

Contents

require 'active_support/concern'
require 'active_support/core_ext/module/delegation'

module ActiveHouse
  module Modeling
    module Query
      extend ActiveSupport::Concern

      class_methods do
        delegate :select,
                 :array_join,
                 :left_array_join,
                 :group_by,
                 :limit,
                 :order_by,
                 :having,
                 :from,
                 :union,
                 :where,
                 :where_not,
                 to: :all

        def _query_builder
          ::ActiveHouse::QueryBuilder.new(self)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
active_house-0.8.0 lib/active_house/modeling/query.rb
active_house-0.7.0 lib/active_house/modeling/query.rb
active_house-0.6.6 lib/active_house/modeling/query.rb
active_house-0.6.5 lib/active_house/modeling/query.rb
active_house-0.6.4 lib/active_house/modeling/query.rb
active_house-0.6.3 lib/active_house/modeling/query.rb
active_house-0.6.2 lib/active_house/modeling/query.rb
active_house-0.6.1 lib/active_house/modeling/query.rb
active_house-0.6.0 lib/active_house/modeling/query.rb
active_house-0.5.1 lib/active_house/modeling/query.rb
active_house-0.5.0 lib/active_house/modeling/query.rb