Sha256: 5895d4d507f65604ccd20f7f98caefc71ae8af58f04a072e3eebdc09b7441fe0

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

module SettingBranding
  extend ActiveSupport::Concern
  class_methods do
    def replace_keywords(keyword)
      keyword&.gsub! '$VERSION', ForemanThemeSatellite::SATELLITE_VERSION
      super
    end

    def [](name)
      if UpstreamOnlySettings.include?(name.to_s)
        Rails.logger.debug "Setting '#{name}' is not available in Satellite; ignoring"
        return nil
      end
      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_theme_satellite-14.2.0 app/models/concerns/setting_branding.rb
foreman_theme_satellite-14.1.0 app/models/concerns/setting_branding.rb