class ConfirmedAttributes::Control
Public Instance Methods
title()
click to toggle source
# File lib/confirmed_attributes/control.rb, line 10 def title "#{name}: #{value}" end
verify(attribute_name)
click to toggle source
# File lib/confirmed_attributes/control.rb, line 14 def verify(attribute_name) if targetable.confirmable_attribute?(attribute_name) self.name = attribute_name.to_s self.value = targetable.send(attribute_name).to_s save end end