module BusinessFlow::Validations::ClassMethods
Additions to the DSL
Public Instance Methods
expects(field, options = {})
click to toggle source
Declares that you expect to set this field during the course of processing, and that it should meet the given ActiveModel validations.
# File lib/business_flow/validations.rb, line 9 def expects(field, options = {}) validates field, options ::BusinessFlow::DSL::Field.new(field).add_to(self) end