From edef21068d5a59b95764e6fa4768e5e00ac48d28 Mon Sep 17 00:00:00 2001 From: George Vinogradov Date: Fri, 10 Feb 2012 01:44:47 +0400 Subject: [PATCH] [issue #174] Fixed bug with RegisterRequest --- Gemfile | 2 +- app/models/register_request.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index dd9ed33ea..248704ebd 100644 --- a/Gemfile +++ b/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 diff --git a/app/models/register_request.rb b/app/models/register_request.rb index 216e0702c..d59416607 100644 --- a/app/models/register_request.rb +++ b/app/models/register_request.rb @@ -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