-
Notifications
You must be signed in to change notification settings - Fork 9
Global app settings
Valentin Ballestrino edited this page Jul 20, 2015
·
1 revision
Para allows for configuring global app settings easily with the settings-rails gem.
A :settings
component is available in the admin.
First, install settings-rails
gem, following the instructions in the gem's README
Then add a :settings
component to your components.rb
file, providing all the wanted settings to be managed from the component.
Example components.rb
:
section :parameters do
component :configuration, :settings, settings: { shop_name: :string, minimum_free_shipping_price: :float }
end
You'll then find a component named "Configuration" in your admin panel, allowing you to edit the specified settings in a simple form.