Skip to main content

Controlling the version panel shown in application footer

By default, the version panel will be shown in the application footer and display the current versions of Ruby and Rails.
If you would like to customize the behavior of your application please see the section below.

Customizing for your application

These are all the supported properties and the default values.

Variable Name Description Default
version_panel_enabled The flag to control whether the version panel is enabled or not. true
version_panel_visible The optional lambda to control when the panel is visible. %w[development ceal_development].include?(Rails.env)
version_panel_show_icons The flag to control whether icons will be shown alongside the version info. true

Here is an example of how you can update your initializer to completely disable the version panel.
ruby
PmacsFrontend.configure do |config|
config.application_title = 'Application with no version panel!'
config.version_panel_enabled = false
# Rest of config ...
end

Here is an example of how you can update your initializer to show the versions panel in the staging environment as well by supplying a custom lamba.
ruby
PmacsFrontend.configure do |config|
config.application_title = 'Application with no version panel!'
config.version_panel_visible = -> { %w[development ceal_development ceal_staging].include?(Rails.env) }
# Rest of config ...
end

Here is an example of how you can update your initializer to make the panel have no icons.
ruby
PmacsFrontend.configure do |config|
config.application_title = 'Plain app with no icons'
config.version_panel_show_icons = false
# Rest of config ...
end