Sha256: 8111fa131be6c99fc44b82f4fc6233d946ca2e7c9cc42d5eb8477fbd55c4eda7

Contents?: true

Size: 243 Bytes

Versions: 13

Compression:

Stored size: 243 Bytes

Contents

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
agilibox-1.9.17 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.16 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.15 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.14 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.13 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.12 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.11 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.10 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.9 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.8 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.7 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.6 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.5 lib/agilibox/active_model_custom_error_messages.rb