Sha256: 6d5c18d1966e10309a9fde2b476cc1f7fd04d3d0a159fe600025841ca45cba6d

Contents?: true

Size: 692 Bytes

Versions: 13

Compression:

Stored size: 692 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 = IshModels::UserProfile.all.list
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ish_manager-0.1.8.16 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.15 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.14 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.13 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.12 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.11 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.10 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.9 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.8 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.7 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.6 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.5 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.4 app/controllers/ish_manager/application_controller.rb