Sha256: e089a9b27852ab78ae1d413c192089776677e57351cc86b90a216178be57a8ab

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

class Admin::ExtensionsController < ApplicationController
  before_action :authorize_role
  only_allow_access_to :index,
                       when: :admin,
                       denied_url: { controller: 'pages', action: 'index' },
                       denied_message: 'You must have administrative privileges to perform this action.'

  def index
    @template_name = 'index' # for Admin::RegionsHelper
    @extensions = TrustyCms::Extension.descendants.sort_by { |e| e.extension_name }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
trusty-cms-7.0.8 app/controllers/admin/extensions_controller.rb
trusty-cms-7.0.7 app/controllers/admin/extensions_controller.rb
trusty-cms-7.0.6 app/controllers/admin/extensions_controller.rb
trusty-cms-7.0.5 app/controllers/admin/extensions_controller.rb
trusty-cms-7.0.4 app/controllers/admin/extensions_controller.rb
trusty-cms-7.0.3 app/controllers/admin/extensions_controller.rb