Method: Softwear::Library::ControllerAuthentication#user_path

Defined in:
lib/softwear/library/controller_authentication.rb

#user_path(user) ⇒ Object



120
121
122
123
# File 'lib/softwear/library/controller_authentication.rb', line 120

def user_path(user)
  user_id = user.is_a?(user_class) ? user.id : user
  softwear_hub_url + "/users/#{user_id}"
end