Exception: SmartParams::PathAlreadyDefinedException
- Inherits:
-
StandardError
- Object
- StandardError
- SmartParams::PathAlreadyDefinedException
- Defined in:
- lib/smart_params/path_already_defined_exception.rb
Instance Method Summary collapse
-
#initialize(path:) ⇒ PathAlreadyDefinedException
constructor
A new instance of PathAlreadyDefinedException.
- #message ⇒ Object
Constructor Details
#initialize(path:) ⇒ PathAlreadyDefinedException
Returns a new instance of PathAlreadyDefinedException.
5 6 7 8 |
# File 'lib/smart_params/path_already_defined_exception.rb', line 5 def initialize(path:) @path = path super() end |
Instance Method Details
#message ⇒ Object
10 11 12 |
# File 'lib/smart_params/path_already_defined_exception.rb', line 10 def "/#{@path.join('/')} was already taken as a field path" end |