Exception: SimpleServiceProvider::RecordInvalid

Inherits:
SimpleServiceProviderError show all
Defined in:
lib/simple_service_provider/errors.rb

Instance Method Summary collapse

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.full_messages.join(",")
  super(error_msg)
end