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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Validates that the attributes's value is in the set of accepted values.
- !ruby/struct:SM::Flow::P 
  body: "@option :allow_nil&lt;Boolean&gt; true if nil is allowed, false if nil is not"
- !ruby/struct:SM::Flow::VERB 
  body: "                            allowed. Default is true.\n"
- !ruby/struct:SM::Flow::P 
  body: "@option :accept&lt;Array&gt; a list of accepted values."
- !ruby/struct:SM::Flow::VERB 
  body: "                            Default are [&quot;1&quot;, 1, &quot;true&quot;, true, &quot;t&quot;]).\n"
- !ruby/struct:SM::Flow::P 
  body: "@example [Usage]"
- !ruby/struct:SM::Flow::VERB 
  body: "  require 'dm-validations'\n\n  class Page\n    include DataMapper::Resource\n\n    property :license_agreement_accepted, String\n    property :terms_accepted, String\n    validates_is_accepted :license_agreement, :accept =&gt; &quot;1&quot;\n    validates_is_accepted :terms_accepted, :allow_nil =&gt; false\n\n    # a call to valid? will return false unless:\n    # license_agreement is nil or &quot;1&quot;\n    # and\n    # terms_accepted is one of [&quot;1&quot;, 1, &quot;true&quot;, true, &quot;t&quot;]\n"
full_name: DataMapper::Validate::ValidatesIsAccepted#validates_is_accepted
is_singleton: false
name: validates_is_accepted
params: (*fields)
visibility: public
