module ConfirmedAttributes::Confirmable::ConfirmableMethods
Public Class Methods
attribute_confirmable?()
click to toggle source
# File lib/confirmed_attributes/confirmable.rb, line 22 def self.attribute_confirmable? true end
included(klass)
click to toggle source
# File lib/confirmed_attributes/confirmable.rb, line 16 def self.included(klass) klass.class_eval do include ConfirmedAttributes::Confirmable::InstanceMethods has_many :confirmed_attributes, as: :targetable, dependent: :delete_all, class_name: "ConfirmedAttributes::Control" def self.attribute_confirmable? true end end end