Module: ActiveRecord::RecordMessages
- Included in:
- RecordNotDestroyed, RecordNotSaved, SoleRecordExceeded, StaleObjectError
- Defined in:
- lib/coaster/rails_ext/active_record/errors.rb
Instance Method Summary collapse
-
#user_message ⇒ Object
user friendly message, for overid.
Instance Method Details
#user_message ⇒ Object
user friendly message, for overid
4 5 6 7 8 9 10 11 |
# File 'lib/coaster/rails_ext/active_record/errors.rb', line 4 def return _translate if description.present? || tkey.present? return record.errors..join(', ') if record.present? return "#{_translate} (#{user_digests})" unless defined?(@coaster) rescue => e "#{} (user_message_error - #{e.class.name} #{e.})" end |