Sha256: 29a7a372c253a96df2f3b51b57e5c9f2d75fa17ce2473afce1566c1c263b7e53

Contents?: true

Size: 390 Bytes

Versions: 28

Compression:

Stored size: 390 Bytes

Contents

require_dependency "ishapi/application_controller"
module Ishapi
  class UserProfilesController < ApplicationController

    before_action :check_profile

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

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

  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ishapi-0.1.8.130 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.129 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.128 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.127 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.126 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.125 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.124 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.123 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.122 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.121 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.120 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.119 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.118 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.117 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.116 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.114 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.113 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.112 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.109 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.108 app/controllers/ishapi/user_profiles_controller.rb