Sha256: 69ac0ea39f830dd995eab7bb2672e4205373515135e74de9d0d027d779197fb4
Contents?: true
Size: 342 Bytes
Versions: 6
Compression:
Stored size: 342 Bytes
Contents
class ResponseSetUser def initialize(user_id) #find the user. You can use the commented code below, but switch the model name #if your user model is not User. # #@user = User.find_by_id(user_id) end def report_user_name #return a value to identify users on a report, e.g.: #@user ? @user.email : nil end end
Version data entries
6 entries across 6 versions & 2 rubygems