Sha256: f8fc202f88f790e1417f343d9576c5e76c46b072100d199f5f7d2a876581c1d0

Contents?: true

Size: 619 Bytes

Versions: 37

Compression:

Stored size: 619 Bytes

Contents

if Authorization::activate_authorization_rules_browser?

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

class AuthorizationUsagesController < ApplicationController
  unloadable
  
  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

37 entries across 37 versions & 12 rubygems

Version Path
rubycs-declarative_authorization-0.3.0 app/controllers/authorization_usages_controller.rb
rubycs-declarative_authorization-0.3.1 app/controllers/authorization_usages_controller.rb
stffn-declarative_authorization-0.3.0 app/controllers/authorization_usages_controller.rb
stffn-declarative_authorization-0.3.1 app/controllers/authorization_usages_controller.rb
stffn-declarative_authorization-0.3.2.1 app/controllers/authorization_usages_controller.rb
stffn-declarative_authorization-0.3.2.2 app/controllers/authorization_usages_controller.rb
stffn-declarative_authorization-0.3.2 app/controllers/authorization_usages_controller.rb
tma-declarative_authorization-0.3.2.1 app/controllers/authorization_usages_controller.rb
tma-declarative_authorization-0.3.2.2 app/controllers/authorization_usages_controller.rb
uhees-declarative_authorization-0.3.1 app/controllers/authorization_usages_controller.rb
uhees-declarative_authorization-0.3.2.2.1 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5.7 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5.6 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5.5 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5.4 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5.3 app/controllers/authorization_usages_controller.rb
graylog2-declarative_authorization-0.5.2 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5.2 app/controllers/authorization_usages_controller.rb
declarative_authorization-dta-0.1.3 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5.1 app/controllers/authorization_usages_controller.rb