Module: Aequitas::ClassMethods

Includes:
Macros
Defined in:
lib/aequitas/class_methods.rb,
lib/aequitas/virtus_integration.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Macros

extract_options, #validates_absence_of, #validates_acceptance_of, #validates_confirmation_of, #validates_format_of, #validates_length_of, #validates_numericalness_of, #validates_presence_of, #validates_primitive_type_of, #validates_value_of, #validates_with_block, #validates_with_method, #validates_within

Class Method Details

.extended(base) ⇒ Object



15
16
17
18
# File 'lib/aequitas/virtus_integration.rb', line 15

def self.extended(base)
  super
  base.extend Aequitas::VirtusIntegration::ClassMethods
end

Instance Method Details

#validation_rulesObject

Return the ContextualRuleSet for this model



13
14
15
# File 'lib/aequitas/class_methods.rb', line 13

def validation_rules
  @validation_rules ||= ContextualRuleSet.new
end