Module: Hanami::Validations::Predicates
- Defined in:
- lib/hanami/v1/validations/predicates.rb
Overview
Mixin to include when defining shared predicates
Class Method Summary collapse
- .included(base) ⇒ Object private
Class Method Details
.included(base) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 39 40 41 42 43 44 |
# File 'lib/hanami/v1/validations/predicates.rb', line 36 def self.included(base) base.class_eval do include Rdy::Logic::Predicates include Hanami::Utils::ClassAttribute class_attribute :messages class_attribute :messages_path end end |