Sha256: 0ecfa35d319866fada7f29fce797762f3d7256d0ee3f7431f96550a17860eada

Contents?: true

Size: 972 Bytes

Versions: 1

Compression:

Stored size: 972 Bytes

Contents

# frozen_string_literal: true
require 'proxes/app'
require 'proxes/controllers/users'
require 'proxes/controllers/roles'
require 'proxes/controllers/permissions'
require 'proxes/controllers/audit_logs'

module ProxES
  class ProxES
    def self.migration_folder
      File.expand_path('../../../migrate', __FILE__)
    end

    def self.route_mappings
      {
        '/' => ::ProxES::App,
        '/users' => ::ProxES::Users,
        '/roles' => ::ProxES::Roles,
        '/permissions' => ::ProxES::Permissions,
        '/audit-logs' => ::ProxES::AuditLogs,
      }
    end

    def self.nav_items
      [
        { order: 0, link:'/users/', text: 'Users', target: User, icon: 'user' },
        { order: 1, link:'/roles/', text: 'Roles', target: Role, icon: 'group' },
        { order: 2, link:'/permissions/', text: 'Permissions', target: Permission, icon: 'check-square' },
      ]
    end
  end
end

ProxES::Container::Plugins.register_plugin(:proxes, ProxES::ProxES)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
proxes-0.3.3 lib/proxes/proxes.rb