Sha256: 270b327a9be6d5901ef7c9de83f8f25f8c9aaeb987129808f8d450a80b847b43

Contents?: true

Size: 426 Bytes

Versions: 13

Compression:

Stored size: 426 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::SETTINGS.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

13 entries across 13 versions & 1 rubygems

Version Path
foreman_theme_satellite-13.3.3 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.3.2 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.3.1 app/models/concerns/setting_branding.rb
foreman_theme_satellite-14.0.1 app/models/concerns/setting_branding.rb
foreman_theme_satellite-14.0.0 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.3.0 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.2.5 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.2.4 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.2.3 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.2.2 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.2.1 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.2.0 app/models/concerns/setting_branding.rb
foreman_theme_satellite-13.1.0 app/models/concerns/setting_branding.rb