Sha256: 36ca20b0ed778e9f6fca4c8c97cc6b7f47e5aa44c9e8e53fb4e6c754df7c0b60

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

require 'proxes/controllers/component'
require 'proxes/models/permission'
require 'proxes/policies/permission_policy'

module ProxES
  class Permissions < Component
    set model_class: Permission

    def find_template(views, name, engine, &block)
      super(views, name, engine, &block) # Root
      super(::ProxES::ProxES.view_folder, name, engine, &block) # Basic Plugin
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
proxes-0.7.1 lib/proxes/controllers/permissions.rb
proxes-0.7.0 lib/proxes/controllers/permissions.rb