[issue #174] Fixed bug with RegisterRequest

This commit is contained in:
George Vinogradov 2012-02-10 01:44:47 +04:00
parent ce39cdd04f
commit edef21068d
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,6 @@
source 'http://rubygems.org' source 'http://rubygems.org'
gem 'rails', '3.0.11' #, :git => 'git://github.com/rails/rails.git' gem 'rails', '3.0.11' #, :git => 'git://github.com/rails/rails.git'
gem 'shotgun'
gem 'pg', '~> 0.11.0' gem 'pg', '~> 0.11.0'
gem 'silent-postgres', '~> 0.1.1' gem 'silent-postgres', '~> 0.1.1'
@ -61,6 +60,7 @@ group :development do
gem 'ruby_parser' gem 'ruby_parser'
gem 'hirb' gem 'hirb'
gem 'shotgun'
# deploy # deploy
gem 'capistrano', :require => false gem 'capistrano', :require => false

View File

@ -13,6 +13,6 @@ class RegisterRequest < ActiveRecord::Base
protected protected
def generate_token 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
end end