Sha256: 3d80ffdc24fb595073435177d86771c9678046c124980b4989915bcab5f022f3

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

module Agilibox::ActiveModelCustomErrorMessages
  def full_message(attribute, message)
    return message[1..-1] if message[0] == "^"
    super(attribute, message)
  end
end

ActiveModel::Errors.prepend(Agilibox::ActiveModelCustomErrorMessages)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
agilibox-1.9.4 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.3 lib/agilibox/active_model_custom_error_messages.rb