Module: Racket::Settings::Defaults
- Defined in:
- lib/racket/settings/defaults.rb
Overview
Module used for storing default values.
Class Method Summary collapse
-
.application_defaults ⇒ Racket::Registry
Returns a Racke::Registry object containing application defaults.
Class Method Details
.application_defaults ⇒ Racket::Registry
Returns a Racke::Registry object containing application defaults.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/racket/settings/defaults.rb', line 29 def self.application_defaults Racket::Registry.with_map( default_action: -> { :index }, default_content_type: -> { 'text/html' }, default_controller_helpers: -> { [:routing, :view] }, default_layout: nil_block, default_view: nil_block, logger: -> { Logger.new($stdout) }, middleware: array_block, mode: -> { :live }, plugins: array_block, session_handler: session_handler, root_dir: -> { Dir.pwd }, template_settings: template_settings, warmup_urls: -> { Set.new } ) end |