Sha256: 9651ea434c314032309ab516fa4d3f508257eb963c0d99fa4f55a608daef6d02

Contents?: true

Size: 299 Bytes

Versions: 40

Compression:

Stored size: 299 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

  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
ishapi-0.1.8.154 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.153 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.151 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.150 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.149 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.148 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.147 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.146 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.145 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.144 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.143 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.142 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.141 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.140 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.139 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.138 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.137 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.136 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.135 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.134 app/controllers/ishapi/user_profiles_controller.rb