fixes #303
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
class JanitorTrial < ActiveRecord::Base
|
class JanitorTrial < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
before_create :initialize_original_level
|
||||||
after_create :send_dmail
|
after_create :send_dmail
|
||||||
after_create :promote_user
|
after_create :promote_user
|
||||||
after_destroy :create_feedback
|
after_destroy :create_feedback
|
||||||
validates_presence_of :user
|
validates_presence_of :user
|
||||||
before_validation :initialize_creator
|
before_validation :initialize_creator
|
||||||
before_validation :initialize_original_level
|
|
||||||
|
|
||||||
def initialize_creator
|
def initialize_creator
|
||||||
self.creator_id = CurrentUser.id
|
self.creator_id = CurrentUser.id
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<div id="a-index">
|
<div id="a-index">
|
||||||
<h1>Janitor Trials</h1>
|
<h1>Janitor Trials</h1>
|
||||||
|
|
||||||
<table class="striped">
|
<table class="striped" width="100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>User</th>
|
<th>User</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user