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

block_params: 
comment: 
- !ruby/struct:SM::Flow::VERB 
  body: " Validates that the given attribute is confirmed by another attribute.\n A common use case scenario is when you require a user to confirm their\n"
- !ruby/struct:SM::Flow::P 
  body: "\xC2\xA0password, for which you use both password and password_confirmation \xC2\xA0attributes."
- !ruby/struct:SM::Flow::VERB 
  body: " @option :allow_nil&lt;Boolean&gt; true/false (default is true)\n @option :confirm&lt;Symbol&gt;    the attribute that you want to validate\n                             against (default is firstattr_confirmation)\n\n @example [Usage]\n   require 'dm-validations'\n\n   class Page\n     include DataMapper::Resource\n\n     property :password, String\n     property :email, String\n     attr_accessor :password_confirmation\n     attr_accessor :email_repeated\n\n     validates_is_confirmed :password\n     validates_is_confirmed :email, :confirm =&gt; :email_repeated\n\n     # a call to valid? will return false unless:\n     # password == password_confirmation\n     # and\n     # email == email_repeated\n"
full_name: DataMapper::Validate::ValidatesIsConfirmed#validates_is_confirmed
is_singleton: false
name: validates_is_confirmed
params: (*fields)
visibility: public
