Exception: Disallow::DefaultScopeError

Inherits:
Error
  • Object
show all
Defined in:
lib/disallow/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(class_name) ⇒ DefaultScopeError

Returns a new instance of DefaultScopeError.



6
7
8
# File 'lib/disallow/exceptions.rb', line 6

def initialize(class_name)
  super("default_scope is not allowed on #{class_name}")
end