Sha256: 291d7a980311dd3aecade5ffc836e5f74dab41be64ea88c41da7858bd920556e

Contents?: true

Size: 507 Bytes

Versions: 2

Compression:

Stored size: 507 Bytes

Contents

if Authorization::activate_authorization_rules_browser?

require File.join(File.dirname(__FILE__), %w{.. .. lib maintenance})

class AuthorizationUsagesController < ApplicationController
  helper :authorization_rules
  filter_access_to :all, :require => :read
  # TODO set context?

  def index
    respond_to do |format|
      format.html do
        @auth_usages_by_controller = Authorization::Maintenance::Usage.usages_by_controller
      end
    end
  end
end

end # activate_authorization_rules_browser?

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stffn-declarative_authorization-0.2.3 app/controllers/authorization_usages_controller.rb
stffn-declarative_authorization-0.2.4 app/controllers/authorization_usages_controller.rb