Module: Veto::Model
- Defined in:
- lib/veto/model.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/veto/model.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#errors ⇒ Object
27 28 29 |
# File 'lib/veto/model.rb', line 27 def errors validator.errors end |
#valid? ⇒ Boolean
19 20 21 |
# File 'lib/veto/model.rb', line 19 def valid? validator.valid? end |
#validate! ⇒ Object
23 24 25 |
# File 'lib/veto/model.rb', line 23 def validate! validator.validate! end |