Module: WhyValidationsSuckIn96::ActiveRecord
- Defined in:
- lib/whyvalidationssuckin96/rails/active_record/association_validation.rb,
lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb
Overview
ActiveRecord
Defined Under Namespace
Modules: AssociationValidation, ClassMethods, InstanceMethods
Constant Summary
- RemovableInstanceMethods =
%w[invalid? validate_on_create validate_on_update validate errors]
- RemovableClassMethods =
%w[validate validate_on_create validate_on_update validates_format_of validates_each validates_inclusion_of validates_size_of validates_confirmation_of validates_exclusion_of validates_uniqueness_of validates_associated validates_acceptance_of validates_numericality_of validates_presence_of validates_length_of]
Class Attribute Summary
- + (Object) warn_on_deprecation Returns the value of attribute warn_on_deprecation.
Class Method Summary
Class Attribute Details
+ (Object) warn_on_deprecation
Returns the value of attribute warn_on_deprecation
7 8 9 |
# File 'lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb', line 7 def warn_on_deprecation @warn_on_deprecation end |
Class Method Details
+ (Object) included(klass_or_mod)
17 18 19 20 21 22 23 24 |
# File 'lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb', line 17 def self.included(klass_or_mod) (klass_or_mod) klass_or_mod.instance_eval do include WhyValidationsSuckIn96::ValidationSupport include WhyValidationsSuckIn96::ActiveRecord::InstanceMethods extend WhyValidationsSuckIn96::ActiveRecord::ClassMethods end end |