Sha256: 6f31233f6f15646dedddb1bf9750c82025258e8e05aa2a2f72a0b9cff79562ad
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
module StaticRecord module Querying # :nodoc: def self.included(base) base.extend(ClassMethods) end module ClassMethods # :nodoc: def method_missing(method_sym, *arguments, &block) if Relation.new(nil, store: store).respond_to?(method_sym, true) Relation.new(nil, store: store, primary_key: pkey).send(method_sym, *arguments, &block) else super end end def respond_to?(method_sym, include_private = false) if Relation.new(nil, store: store).respond_to?(method_sym, true) true else super end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems