Exception: SimpleServiceProvider::RecordInvalid
- Inherits:
-
SimpleServiceProviderError
- Object
- StandardError
- SimpleServiceProviderError
- SimpleServiceProvider::RecordInvalid
- Defined in:
- lib/simple_service_provider/errors.rb
Instance Method Summary collapse
-
#initialize(consultant) ⇒ RecordInvalid
constructor
A new instance of RecordInvalid.
Constructor Details
#initialize(consultant) ⇒ RecordInvalid
Returns a new instance of RecordInvalid.
6 7 8 9 10 |
# File 'lib/simple_service_provider/errors.rb', line 6 def initialize(consultant) @consultant = consultant error_msg = @consultant.errors..join(",") super(error_msg) end |