Exception: Trek::Scopes::NotAppliedError
- Inherits:
-
StandardError
- Object
- StandardError
- Trek::Scopes::NotAppliedError
- Defined in:
- app/controllers/concerns/trek/scopes.rb
Overview
Raised when a controller includes Trek::Scopes but its #index never calls apply_scopes! — to teach the developer to wire up scoping.
Constant Summary collapse
- DEFAULT_MESSAGE =
<<~MSG.squish Trek::Scopes is included but #index never called `apply_scopes!`. Add `apply_scopes!` to your index action. See https://trek.etamin.studio/reference/controllers#mixins MSG
Instance Method Summary collapse
-
#initialize(message = DEFAULT_MESSAGE) ⇒ NotAppliedError
constructor
A new instance of NotAppliedError.
Constructor Details
#initialize(message = DEFAULT_MESSAGE) ⇒ NotAppliedError
Returns a new instance of NotAppliedError.
16 |
# File 'app/controllers/concerns/trek/scopes.rb', line 16 def initialize( = DEFAULT_MESSAGE) = super |