Sha256: 65633aed9d5112565ce4d0b5e912e88da8a1d8b931ec6153e4778c9b333f0a27
Contents?: true
Size: 681 Bytes
Versions: 5
Compression:
Stored size: 681 Bytes
Contents
module IshManager class ApplicationController < ActionController::Base protect_from_forgery :with => :exception before_action :set_current_ability check_authorization def home authorize! :home, Manager render 'home' end private def set_current_ability @current_ability ||= ::IshManager::Ability.new( current_user ) end def set_lists @sites_list = Site.all.list @cities_list = City.all.list @venues_list = Venue.all.list @reports_list = Report.all.list @galleries_list = Gallery.all.list @videos_list = Video.all.list @user_profiles_list = UserProfile.all.list end end end
Version data entries
5 entries across 5 versions & 1 rubygems