Sha256: 8c92057319e154b0b97772a9e84b9bbfdea404719137750ced2e35270b7e5613
Contents?: true
Size: 1.19 KB
Versions: 5
Compression:
Stored size: 1.19 KB
Contents
# Class for configuring the Renalware::Core engine # http://stackoverflow.com/questions/24104246/how-to-use-activesupportconfigurable-with-rails-engine # # To override default config values, create an initializer in the host application # e.g. config/initializers/renalware_core.rb, and use e.g.: # # Renalware.configure do |config| # config.x = y # ... # end # # To access configuration settings use e.g. # Renalware.config.x # module Renalware class Configuration include ActiveSupport::Configurable config_accessor(:site_name) { "Renalware" } config_accessor(:delay_after_which_a_finished_session_becomes_immutable) { 6.hours } config_accessor(:new_clinic_visit_deletion_window) { 24.hours } config_accessor(:salutation_prefix) { "Dear" } config_accessor(:page_title_spearator) { " : " } config_accessor(:patient_hospital_identifiers) { {} } config_accessor(:session_timeout_polling_frequency) { 15.seconds } config_accessor(:duration_of_last_url_memory_after_session_expiry) { 30.minutes } config_accessor(:broadcast_subscription_map) { {} } end def self.config @config ||= Configuration.new end def self.configure yield config end end
Version data entries
5 entries across 5 versions & 1 rubygems