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
declarative_authorization-dta-0.1.1 app/controllers/authorization_usages_controller.rb
declarative_authorization-dta-0.1 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.5 app/controllers/authorization_usages_controller.rb
timcharper-declarative_authorization-0.4.1.6 app/controllers/authorization_usages_controller.rb
timcharper-declarative_authorization-0.4.1.5 app/controllers/authorization_usages_controller.rb
timcharper-declarative_authorization-0.4.1.4 app/controllers/authorization_usages_controller.rb
timcharper-declarative_authorization-0.4.1.3 app/controllers/authorization_usages_controller.rb
tarsolya-declarative_authorization-0.4.1.2 app/controllers/authorization_usages_controller.rb
tarsolya-declarative_authorization-0.4.1 app/controllers/authorization_usages_controller.rb
timcharper-declarative_authorization-0.4.1.2 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.4.1 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.4 app/controllers/authorization_usages_controller.rb
ghart-declarative_authorization-0.3.2.4 app/controllers/authorization_usages_controller.rb
mconnell-declarative_authorization-0.3.2.3 app/controllers/authorization_usages_controller.rb
viva-declarative_authorization-0.3.2.3.1 app/controllers/authorization_usages_controller.rb
viva-declarative_authorization-0.3.2.2.1 app/controllers/authorization_usages_controller.rb
declarative_authorization-0.3.2.3 app/controllers/authorization_usages_controller.rb