Sha256: 39be0e7a7964a367a281f9d58ec8ef48400e06ddeed2103a0a53840294e92e28

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

class Admin::ExtensionsController < ApplicationController
  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 = Kajam::Extension.descendants.sort_by { |e| e.extension_name }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kajam-1.0.3.rc2 app/controllers/admin/extensions_controller.rb