lib/devise_phone.rb in devise_phone-0.0.1661 vs lib/devise_phone.rb in devise_phone-0.0.1662
- old
+ new
@@ -8,56 +8,8 @@
require 'devise_phone/controllers/url_helpers'
require 'devise_phone/controllers/helpers'
require 'devise_phone/rails'
module Devise
-
- # Get the phone class from the phone reference object.
- def self.phone
- @@phone_ref.get
- end
-
- # Set the phone reference object to access the phone.
- def self.phone=(class_name)
- @@phone_ref = ref(class_name)
- end
- self.phone = "Devise::Phone"
- # mattr_accessor :sms_confirm_within
- # @@sms_confirm_within = 2.days
- # mattr_accessor :sms_confirmation_keys
- # @@sms_confirmation_keys = [:email]
- # def self.setup
- # yield self
- # end
-
- # class Getter
- # def initialize name
- # @name = name
- # end
-
- # def get
- # ActiveSupport::Dependencies.constantize(@name)
- # end
- # end
-
- # def self.ref(arg)
- # if defined?(ActiveSupport::Dependencies::ClassCache)
- # ActiveSupport::Dependencies::reference(arg)
- # Getter.new(arg)
- # else
- # ActiveSupport::Dependencies.ref(arg)
- # end
- # end
- # # Get the sms sender class from the phone 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)
- # @@phone_ref = ref(class_name)
- # end
-
- # @@sms_sender = "Devise::SmsSender"
end
Devise.add_module :phone, :model => "models/phone", :controller => :phone_verifications, :route => :phone_verification