--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Auto-generate validations for a given property. This will only occur if the option :auto_validation is either true or left undefined.
- !ruby/struct:SM::Flow::P 
  body: "@details [Triggers]"
- !ruby/struct:SM::Flow::VERB 
  body: "  Triggers that generate validator creation\n\n  :nullable =&gt; false\n      Setting the option :nullable to false causes a\n      validates_presence_of validator to be automatically created on\n      the property\n\n  :length =&gt; 20\n      Setting the option :length causes a validates_length_of\n      validator to be automatically created on the property. If the\n      value is a Integer the validation will set :maximum =&gt; value if\n      the value is a Range the validation will set :within =&gt; value\n\n  :format =&gt; :predefined / lambda / Proc\n      Setting the :format option causes a validates_format_of\n      validator to be automatically created on the property\n\n  :set =&gt; [&quot;foo&quot;, &quot;bar&quot;, &quot;baz&quot;]\n      Setting the :set option causes a validates_within\n      validator to be automatically created on the property\n\n  Integer type\n      Using a Integer type causes a validates_is_number\n      validator to be created for the property.  integer_only\n      is set to true\n\n  BigDecimal or Float type\n      Using a Integer type causes a validates_is_number\n      validator to be created for the property.  integer_only\n      is set to false, and precision/scale match the property\n\n  Messages\n\n  :messages =&gt; {..}\n      Setting :messages hash replaces standard error messages\n      with custom ones. For instance:\n      :messages =&gt; {:presence =&gt; &quot;Field is required&quot;,\n                    :format =&gt; &quot;Field has invalid format&quot;}\n      Hash keys are: :presence, :format, :length, :is_unique,\n                     :is_number, :is_primitive\n\n  :message =&gt; &quot;Some message&quot;\n      It is just shortcut if only one validation option is set\n"
full_name: DataMapper::Validate::AutoValidate#auto_generate_validations
is_singleton: false
name: auto_generate_validations
params: (property)
visibility: public
