Module: Devise

Defined in:
lib/devise_sms_activable.rb,
lib/models/sms_activable.rb

Defined Under Namespace

Modules: Models Classes: SmsActivationsController, SmsSender

Constant Summary collapse

@@sms_confirm_within =
2.days
@@sms_confirmation_keys =
[:email]

Class Method Summary collapse

Class Method Details

.sms_senderObject

Get the sms sender class from the mailer reference object.



18
19
20
# File 'lib/devise_sms_activable.rb', line 18

def self.sms_sender
  @@sms_sender_ref.get
end

.sms_sender=(class_name) ⇒ Object

Set the smser reference object to access the smser.



23
24
25
# File 'lib/devise_sms_activable.rb', line 23

def self.sms_sender=(class_name)
  @@sms_sender_ref = ActiveSupport::Dependencies.ref(class_name)
end