Sha256: d182cdb2c05f83346db3c77182907ca19128a9761a4844647f1e94f615a49f57

Contents?: true

Size: 207 Bytes

Versions: 2

Compression:

Stored size: 207 Bytes

Contents

module BootstrapValidatorRails
  module Validators
    class Acceptance < Presence
      def i18n_message
        @record.errors.generate_message(@method, :accepted, default: '')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bootstrap_validator_rails-1.1.0 lib/bootstrap_validator_rails/validators/acceptance_validator.rb
bootstrap_validator_rails-1.0.0 lib/bootstrap_validator_rails/validators/acceptance_validator.rb