Sha256: d292fd25329e5e4b56cd3b014acbd65a7a846555ba55e74c8a881b3de84a45d2
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
module Fluffery module Forms module Validation class Presence < Fluffery::Forms::Validation::Base def self.create(attribute ,options) options.merge!('required' => 'required') unless options.has_key?('required') && options['required'] === false options end end class Pattern < Fluffery::Forms::Validation::Base def self.create(attribute, options, matcher) options.reverse_merge!('pattern' => matcher.source) unless matcher.nil? options end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluffery-0.0.3 | lib/fluffery/forms/validation/validators.rb |