Sha256: f3b2712125978431ebebc275b335b6c99b21430612b39a73f6f50e043ad93153
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
require_dependency "red_base/application_controller" module RedBase class API::V1::PermissionsController < ApplicationController # GET /api/v1/groups def index @permissions = [] RedBase::Engine.models_with_permission.each do |model| model = Object.const_get(model) @permissions.concat(model::Permissions.permission_strings(model)) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems