Class: Hecks::Runtime::TenantScope::Scoped
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Hecks::Runtime::TenantScope::Scoped
- Defined in:
- lib/hecks/runtime/tenant_scope.rb
Instance Method Summary collapse
-
#initialize(declared, clause) ⇒ Scoped
constructor
A new instance of Scoped.
- #wheres ⇒ Object
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
#wheres ⇒ Object
51 |
# File 'lib/hecks/runtime/tenant_scope.rb', line 51 def wheres = __getobj__.wheres + [@clause] |