Sha256: 9118d9b177fae899fe754bd4d9b4587591fa1c4dd8b66755c06a47f3ff1ea43f

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 Bytes

Contents

# frozen_string_literal: true
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

1 entries across 1 versions & 1 rubygems

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