Class: Lapsoss::Current
- Inherits:
-
ActiveSupport::CurrentAttributes
- Object
- ActiveSupport::CurrentAttributes
- Lapsoss::Current
- Defined in:
- lib/lapsoss/current.rb
Class Method Summary collapse
Class Method Details
.with_clean_scope ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/lapsoss/current.rb', line 9 def self.with_clean_scope previous_scope = scope self.scope = Scope.new yield ensure self.scope = previous_scope end |