Module: FragmentedValidation::ClassMethods
- Defined in:
- lib/fragmented_validation/core.rb
Instance Method Summary collapse
Instance Method Details
#fragmented_validation ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/fragmented_validation/core.rb', line 9 def fragmented_validation include InstanceMethods attributes = self.new.attributes.keys attributes.each do |key| define_method "valid_#{key}?" do fragmented_validation_on key end end end |