Sha256: f5974d4511b0b4ca8f87b903715c352249ed96d5de802ff6a4f4a95a691bd2db

Contents?: true

Size: 252 Bytes

Versions: 35

Compression:

Stored size: 252 Bytes

Contents

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

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

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
agilibox-1.9.1 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.9.0 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.8.0 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.7.4 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.7.3 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.7.2 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.7.1 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.7.0 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.6.2 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.6.1 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.6.0 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.13 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.12 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.11 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.10 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.9 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.8 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.7 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.6 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.5 lib/agilibox/active_model_custom_error_messages.rb