Sha256: 04120fc6598e645b55202d91ad4c6416958aa65eabe10cc2967edcc98e77d351

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

if Authorization::activate_authorization_rules_browser?

require File.join(File.dirname(__FILE__), %w{.. .. lib declarative_authorization 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

else
class AuthorizationUsagesController < ApplicationController; end
end # activate_authorization_rules_browser?

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stffn-declarative_authorization-0.2.5 app/controllers/authorization_usages_controller.rb