Sha256: 148cf625c9dcd58ac19e2d387edc5c0b081474f7bbb4dba1a64711c8088500b4

Contents?: true

Size: 938 Bytes

Versions: 2

Compression:

Stored size: 938 Bytes

Contents

# frozen_string_literal: true
require 'proxes'
require 'proxes/db'
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
      {
        '/' => App,
        '/users' => Users,
        '/roles' => Roles,
        '/permissions' => Permissions,
        '/audit-logs' => 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

2 entries across 2 versions & 1 rubygems

Version Path
proxes-0.3.1 lib/proxes/proxes.rb
proxes-0.3.0 lib/proxes/proxes.rb