Sha256: e634bea59eecdd9e0af907383f0a6eeec06f33ed62b159e22425cd3319045a41

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

Axel::Querier # Autoloading
module Axel
  module ServiceResource
    module Queries
      extend ActiveSupport::Concern

      included do
        # Use Query methods from a Querier instance
        class << self
          delegate *Axel::Querier.query_methods, to: :querier
        end
      end

      module ClassMethods
        # Entry point to querying methods like:
        #   #where
        #   #path
        #   #uri
        def querier
          Axel::Querier.new self
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axel-0.0.1 app/models/axel/service_resource/queries.rb