mattbeedle/capsule_crm

View on GitHub
lib/capsule_crm/errors/record_invalid.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CapsuleCRM
  module Errors
    class RecordInvalid < StandardError
      attr_reader :record

      def initialize(record)
        @record = record
        super(record.errors.full_messages.join(', '))
      end
    end
  end
end