added a few things here. Firstly, I fixed the broken delete function with the admin page. Secondly, whenever you register for this application, we will automatically populate your user data to make the application functional. Seemed like the easiest way to do this
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
class Performance < ActiveRecord::Base
|
||||
attr_accessible :comments, :date_submitted, :reviewer, :score
|
||||
belongs_to :user
|
||||
|
||||
def reviewer_name
|
||||
User.find_by_id(self.reviewer).full_name
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user