Exception: Faulty::MissingDefaultScopeError

Inherits:
FaultyError
  • Object
show all
Defined in:
lib/faulty/error.rb

Overview

Raised if getting the default scope without initializing one

Instance Method Summary collapse

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(message = nil)
  message ||= 'No default scope. Create one with init or get your scope with Faulty[:scope_name]'
  super(message)
end