Sha256: ae56d98c7bf6958a8801f6f3bbbbf585f90dc13d10d6c5a72ab89e99cfe68f3f
Contents?: true
Size: 573 Bytes
Versions: 26
Compression:
Stored size: 573 Bytes
Contents
module Effective module EffectiveDatatable module Dsl module Scopes # Instance Methods inside the scopes do .. end block def scope(name, default, options = {}, &block) if block_given? raise "You cannot use partial: ... with the block syntax" if options[:partial] options[:block] = block end # This needs to be a {} not WithIndifferentAccess or rendering _scopes won't work correctly (@scopes ||= {})[name] = options.merge(default: default) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems