Class: Vanguard::Rule::Nullary::Confirmation::Builder::Confirm::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/vanguard/rule/nullary/confirmation.rb

Overview

Confirm attribute from block

Instance Method Summary collapse

Instance Method Details

#confirmation_attribute_name(attribute_name) ⇒ Symbol

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return confirmation attribute name

Parameters:

  • attribute_name (Symbol)

Returns:

  • (Symbol)


65
66
67
# File 'lib/vanguard/rule/nullary/confirmation.rb', line 65

def confirmation_attribute_name(attribute_name)
  @block.call(attribute_name)
end