Sha256: 310d61ea0a172d6112551f22bf4bac85dc6efcd15a23684ac08b9fd63cc23a06
Contents?: true
Size: 447 Bytes
Versions: 77
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true module ForemanAnsible module Concerns # Shared task methods between api controllers module ApiCommon extend ActiveSupport::Concern def find_ansible_roles ids = params.fetch(:ansible_role_ids, []) || [] @ansible_roles = AnsibleRole.authorized(:view_ansible_roles).find(ids) rescue ActiveRecord::RecordNotFound => e not_found(e.message) end end end end
Version data entries
77 entries across 77 versions & 1 rubygems