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.176 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.175 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.174 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.173 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.172 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.171 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.169 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.168 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.167 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.166 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.165 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.164 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.162 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.161 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.160 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.159 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.158 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.157 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.156 app/controllers/ishapi/user_profiles_controller.rb
ishapi-0.1.8.155 app/controllers/ishapi/user_profiles_controller.rb