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