Module: SolidWebUi::Configurable
Overview
Shared dry-configurable base for the three web engines. Each engine does ‘extend SolidWebUi::Configurable` and then adds its own feature-flag settings (enable_retry, enable_clear, enable_trim, …). Centralizes the settings every dashboard needs: which controller to inherit (host auth), page size, time zone and the page title.
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/solid_web_ui/configurable.rb', line 12 def self.extended(base) base.extend Dry::Configurable base.setting :base_controller_class, default: "ActionController::Base" base.setting :per_page, default: 25 base.setting :time_zone, default: "UTC" base.setting :page_title, default: base.respond_to?(:name) ? base.name : "Solid Web" end |