Module: Hanami::Validations::Predicates
- Defined in:
- lib/hanami/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.
34 35 36 37 38 39 40 41 42 |
# File 'lib/hanami/validations/predicates.rb', line 34 def self.included(base) base.class_eval do include Dry::Logic::Predicates include Utils::ClassAttribute class_attribute :messages class_attribute :messages_path end end |