Class: Hecks::Runtime::TenantScope::Scoped

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/hecks/runtime/tenant_scope.rb

Instance Method Summary collapse

Constructor Details

#initialize(declared, clause) ⇒ Scoped

Returns a new instance of Scoped.



46
47
48
49
# File 'lib/hecks/runtime/tenant_scope.rb', line 46

def initialize(declared, clause)
  super(declared)
  @clause = clause
end

Instance Method Details

#wheresObject



51
# File 'lib/hecks/runtime/tenant_scope.rb', line 51

def wheres = __getobj__.wheres + [@clause]