Module: Tramway::Forms::Validations
- Included in:
- BaseForm
- Defined in:
- lib/tramway/forms/validations.rb
Overview
Provides form validations for Tramway forms
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#__apply_validations(_params) ⇒ Object
rubocop:disable Naming/PredicateMethod.
Class Method Details
.included(base) ⇒ Object
9 10 11 12 |
# File 'lib/tramway/forms/validations.rb', line 9 def self.included(base) base.include ActiveModel::Validations base.extend ClassMethods end |
Instance Method Details
#__apply_validations(_params) ⇒ Object
rubocop:disable Naming/PredicateMethod
20 21 22 |
# File 'lib/tramway/forms/validations.rb', line 20 def __apply_validations(_params) valid? end |