Files
railsgoat/app/models/performance.rb
T
2017-12-05 18:46:21 -06:00

10 lines
200 B
Ruby

# frozen_string_literal: true
class Performance < ApplicationRecord
belongs_to :user
def reviewer_name
u = User.find_by_id(self.reviewer)
u.full_name if u.respond_to?("fullname")
end
end