Sha256: 8c1f6ac5cea8ca8b46cb15f32786ad330a73967d9a4463c840531df7005ffc4b

Contents?: true

Size: 897 Bytes

Versions: 1

Compression:

Stored size: 897 Bytes

Contents

require "devise"

$: << File.expand_path("..", __FILE__)

require "devise_sms_activable/routes"
require "devise_sms_activable/schema"
require 'devise_sms_activable/controllers/url_helpers'
require 'devise_sms_activable/controllers/helpers'
require 'devise_sms_activable/rails'

module Devise
  mattr_accessor :sms_confirm_within
  @@sms_confirm_within = 2.days
  mattr_accessor :sms_confirmation_keys
  @@sms_confirmation_keys = [:email]
  
  # Get the sms sender class from the mailer reference object.
  def self.sms_sender
    @@sms_sender_ref.get
  end

  # Set the smser reference object to access the smser.
  def self.sms_sender=(class_name)
    @@sms_sender_ref = ActiveSupport::Dependencies.ref(class_name)
  end
  
  self.sms_sender = "Devise::SmsSender"
end

Devise.add_module :sms_activable, :model => "models/sms_activable", :controller => :sms_activations, :route => :sms_activation

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise_sms_activable-0.0.9 lib/devise_sms_activable.rb