Exception: Faulty::MissingDefaultScopeError
- Inherits:
-
FaultyError
- Object
- StandardError
- FaultyError
- Faulty::MissingDefaultScopeError
- Defined in:
- lib/faulty/error.rb
Overview
Raised if getting the default scope without initializing one
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ MissingDefaultScopeError
constructor
A new instance of MissingDefaultScopeError.
Constructor Details
#initialize(message = nil) ⇒ MissingDefaultScopeError
Returns a new instance of MissingDefaultScopeError.
25 26 27 28 |
# File 'lib/faulty/error.rb', line 25 def initialize( = nil) ||= 'No default scope. Create one with init or get your scope with Faulty[:scope_name]' super() end |