Sha256: a73b158c4a416db247d8e76c68cc96d2242bc4e6d4ed523f4c9bf1d8deaa6527
Contents?: true
Size: 940 Bytes
Versions: 8
Compression:
Stored size: 940 Bytes
Contents
module Katello module Concerns module ContentFacetHostsControllerExtensions extend ActiveSupport::Concern included do before_action :set_up_content_view_environment, only: [:update] def set_up_content_view_environment return unless params[:host] && params[:host][:content_facet_attributes] cv_id = params[:host][:content_facet_attributes].delete(:content_view_id) env_id = params[:host][:content_facet_attributes].delete(:lifecycle_environment_id) Rails.logger.info "set_up_content_view_environment: cv_id=#{cv_id}, env_id=#{env_id}" if (cv_id.present? && env_id.present?) @host.content_facet.assign_single_environment( lifecycle_environment_id: env_id, content_view_id: cv_id ) Rails.logger.info "set_up_content_view_environment: done" end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems