Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

base release 2

  • Loading branch information...
commit 255027ea972eab563923135961d80c6fa389f455 1 parent 3f8229a
@giano authored
View
2  .document
@@ -2,4 +2,4 @@ lib/**/*.rb
bin/*
-
features/**/*.feature
-LICENSE.txt
+LICENSE
View
4 Gemfile.lock
@@ -7,9 +7,6 @@ GEM
git (>= 1.2.5)
rake
mime-types (1.16)
- moonshado-sms (1.1.0)
- rest-client (= 1.6.0)
- yajl-ruby (= 0.7.7)
rake (0.8.7)
rest-client (1.6.0)
mime-types (>= 1.16)
@@ -20,4 +17,3 @@ PLATFORMS
DEPENDENCIES
jeweler (>= 1.5.2)
- moonshado-sms (>= 1.1.0)
View
1  lib/generators/templates/lib/sms_sender.rb
@@ -1,4 +1,5 @@
class Devise::SmsSender
+ #Actually sends the sms token. feel free to modify and adapt to your provider and/or gem
def self.send_sms(phone,message)
sms = Moonshado::Sms.new(phone, message)
return sms.deliver_sms[:stat]
View
5 lib/models/sms_activable.rb
@@ -16,8 +16,9 @@ module Models
# use this to let your user access some features of your application without
# confirming the account, but blocking it after a certain period (ie 7 days).
# By default confirm_within is 0 days, so the user must confirm before entering.
- # If you want to allow user to use parts of the site and block others override sms_confirmation_required?
- # and check manually on selected pages using the require_sms_activated! helper or sms_confirmed? property on record
+ # If you want to allow user to use parts of the site and block others override
+ # sms_confirmation_required? and check manually on selected pages using the
+ # require_sms_activated! helper or sms_confirmed? property on record
#
# == Examples
#

0 comments on commit 255027e

Please sign in to comment.
Something went wrong with that request. Please try again.