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