Sha256: c9ebac378b06c76d911d6b463924e9d3ca14837c62f50cb75a90b06bce5a74d7

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

module Admin
  class RolesController < ApplicationController
    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectiveResources.authorize!(self, :admin, :effective_roles) }

    include Effective::CrudController

    if (config = EffectiveRoles.config.layout)
      layout(config.kind_of?(Hash) ? config[:admin] : config)
    end

    def index
      @page_title = 'Roles'
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
effective_roles-2.1.0 app/controllers/admin/roles_controller.rb