Sha256: 7e16ef8a0c1a6ea213777695aef88e20b54969f6e9fba56429c8c695e2346e92
Contents?: true
Size: 348 Bytes
Versions: 11
Compression:
Stored size: 348 Bytes
Contents
module Martyr module Schema class NamedScope include ActiveModel::Model attr_reader :name, :proc def initialize(name, proc) @name = name.to_s @proc = proc.to_proc end def run(query_context_builder, *args) query_context_builder.instance_exec(*args, &@proc) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems