Sha256: d9e04ccf068bed2189e0c2e41643d1805b26bcd39566213924f97ae2cb2ac97e

Contents?: true

Size: 724 Bytes

Versions: 11

Compression:

Stored size: 724 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
      @tags_list = Tag.all.list
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ish_manager-0.1.8.28 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.27 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.26 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.25 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.24 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.23 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.22 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.21 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.20 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.19 app/controllers/ish_manager/application_controller.rb
ish_manager-0.1.8.18 app/controllers/ish_manager/application_controller.rb