Class: Ishapi::UserProfilesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ishapi/user_profiles_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#test

Instance Method Details

#myObject



12
13
14
15
# File 'app/controllers/ishapi/user_profiles_controller.rb', line 12

def my
  @profile = current_user.profile
  authorize! :show, @profile
end

#showObject



7
8
9
10
# File 'app/controllers/ishapi/user_profiles_controller.rb', line 7

def show
  @profile = IshModels::UserProfile.find_by :username => params[:username]
  authorize! :show, @profile
end