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 @@
| User |
|---|