Class: ResponseSetUser

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/surveyor_gui/templates/app/models/response_set_user.rb

Instance Method Summary collapse

Constructor Details

#initialize(user_id) ⇒ ResponseSetUser

Returns a new instance of ResponseSetUser.



2
3
4
5
6
7
# File 'lib/generators/surveyor_gui/templates/app/models/response_set_user.rb', line 2

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

Instance Method Details

#report_user_nameObject



9
10
11
12
# File 'lib/generators/surveyor_gui/templates/app/models/response_set_user.rb', line 9

def report_user_name
  #return a value to identify users on a report, e.g.:
  #@user ? @user.email : nil
end