From 6b5b1cf023a685c6307fb184c398497b771f30c8 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 24 Feb 2012 17:45:07 -0500 Subject: [PATCH] fixes #303 --- app/models/janitor_trial.rb | 2 +- app/views/janitor_trials/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/janitor_trial.rb b/app/models/janitor_trial.rb index 91d44d22f..a7e0e42a3 100644 --- a/app/models/janitor_trial.rb +++ b/app/models/janitor_trial.rb @@ -1,11 +1,11 @@ class JanitorTrial < ActiveRecord::Base belongs_to :user + before_create :initialize_original_level after_create :send_dmail after_create :promote_user after_destroy :create_feedback validates_presence_of :user before_validation :initialize_creator - before_validation :initialize_original_level def initialize_creator self.creator_id = CurrentUser.id diff --git a/app/views/janitor_trials/index.html.erb b/app/views/janitor_trials/index.html.erb index afb7dd0f4..617db438f 100644 --- a/app/views/janitor_trials/index.html.erb +++ b/app/views/janitor_trials/index.html.erb @@ -2,7 +2,7 @@

Janitor Trials

- +
User