[issue #174] Fixed bug with RegisterRequest
This commit is contained in:
parent
ce39cdd04f
commit
edef21068d
2
Gemfile
2
Gemfile
|
@ -1,7 +1,6 @@
|
|||
source 'http://rubygems.org'
|
||||
|
||||
gem 'rails', '3.0.11' #, :git => 'git://github.com/rails/rails.git'
|
||||
gem 'shotgun'
|
||||
|
||||
gem 'pg', '~> 0.11.0'
|
||||
gem 'silent-postgres', '~> 0.1.1'
|
||||
|
@ -61,6 +60,7 @@ group :development do
|
|||
gem 'ruby_parser'
|
||||
|
||||
gem 'hirb'
|
||||
gem 'shotgun'
|
||||
|
||||
# deploy
|
||||
gem 'capistrano', :require => false
|
||||
|
|
|
@ -13,6 +13,6 @@ class RegisterRequest < ActiveRecord::Base
|
|||
protected
|
||||
|
||||
def generate_token
|
||||
token = Digest::SHA1.hexdigest(name + email + Time.now.to_s + rand.to_s)
|
||||
self.token = Digest::SHA1.hexdigest(name + email + Time.now.to_s + rand.to_s)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue