lib/bbq/devise.rb in bbq-0.0.2.beta.1 vs lib/bbq/devise.rb in bbq-0.0.2.beta.2
- old
+ new
@@ -1,9 +1,8 @@
if defined?(Devise)
+ require 'securerandom'
- require 'bbq/test'
-
module Bbq
module Devise
attr_accessor :devise_authentication_key, :email, :password, :scope
@@ -40,14 +39,14 @@
def register_and_login
register
end
def self.next_email
- "#{ActiveSupport::SecureRandom.hex(3)}@example.com"
+ "#{SecureRandom.hex(3)}@example.com"
end
def self.next_password
- ActiveSupport::SecureRandom.hex(8)
+ SecureRandom.hex(8)
end
end
end
end