Sha256: e8073b18ae62886570cfab269facdda8c3894ad2d1c6ffc77fb8c5495f46b83d
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
require 'dynamoid/criteria/chain' # encoding: utf-8 module Dynamoid #:nodoc: # This module defines criteria and criteria chains. module Criteria extend ActiveSupport::Concern module ClassMethods [:where, :all, :first, :each].each do |meth| define_method(meth) do |opts| chain = Dynamoid::Criteria::Chain.new(self) chain.send(meth, opts) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dynamoid-0.0.4 | lib/dynamoid/criteria.rb |