Sha256: 2cb9e4c68b59758e28ba929294db3b24ff65ea3c789316bcaf1c77beb986f93e
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 Bytes
Contents
require 'active_support/concern' require 'active_support/core_ext/module/delegation' module ActiveHouse module Querying extend ActiveSupport::Concern included do class_attribute :_query_class, instance_accessor: false self._query_class = ActiveHouse::Query end class_methods do delegate :to_a, :select, :where, :group_by, :limit, :order_by, :having, to: :all def all _query_class.new(self) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems