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.5.4 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.3 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.2 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.1 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.5.0 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.4.4 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.4.3 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.4.2 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.4.1 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.4.0 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.3.6 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.3.5 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.3.4 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.3.3 lib/agilibox/active_model_custom_error_messages.rb
agilibox-1.3.2 lib/agilibox/active_model_custom_error_messages.rb