Class: ActiveModelExtensions::AlertingValidator
- Inherits:
-
ActiveModel::Validator
- Object
- ActiveModel::Validator
- ActiveModelExtensions::AlertingValidator
- Defined in:
- lib/active_model_extensions/validation_alertable.rb
Instance Method Summary collapse
Instance Method Details
#setup(klass) ⇒ Object
31 32 33 34 35 |
# File 'lib/active_model_extensions/validation_alertable.rb', line 31 def setup(klass) unless klass.method_defined?(:alerts) klass.send(:include,ValidationAlertable) end end |