Sha256: d6f8ac1076b488be923c18c33ab1656aff1d57f9bb0a42de221e0fe0c931e5ea
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
module BootstrapValidatorRails module Validators class Validator def initialize(record, method, validator) @record, @method, @validator = record, method, validator end def validator_options options = @validator.try(:options) options || {} end def unsupported? options = validator_options unsupported_options.any? { |opt| options.has_key? opt } end protected def unsupported_options BootstrapValidatorRails::CONFIGURATION[:unsupported_options] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems