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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Validates that the given attribute is confirmed by another attribute. A common use case scenario is when you require a user to confirm their password, for which you use both password and password_confirmation attributes.
- !ruby/struct:SM::Flow::P 
  body: "@option :allow_nil&lt;Boolean&gt; true/false (default is true) @option :confirm&lt;Symbol&gt; the attribute that you want to validate"
- !ruby/struct:SM::Flow::VERB 
  body: "                            against (default is firstattr_confirmation)\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 :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
