Sha256: f97db7a1e7cbfc781f854d70244051eaa4828184060faf90be6d56cfc4b1a8a1
Contents?: true
Size: 753 Bytes
Versions: 39
Compression:
Stored size: 753 Bytes
Contents
# frozen_string_literal: true module ForemanAnsible module Concerns # Helpers to select proxy and call ProxyAPI module ImportControllerHelper extend ActiveSupport::Concern included do # rubocop:disable Rails/LexicallyScopedActionFilter before_action :find_resource, :only => [:destroy] before_action :find_proxy, :only => [:import] before_action :create_importer, :only => [:import, :confirm_import] before_action :default_order, :only => [:index] # rubocop:enable Rails/LexicallyScopedActionFilter end def find_proxy return nil unless params[:proxy] @proxy = SmartProxy.authorized(:view_smart_proxies).find(params[:proxy]) end end end end
Version data entries
39 entries across 39 versions & 1 rubygems