Sha256: 8575d522a210a733abc9829ac3119d3187e07baeac469df14b12bd3483e7afb5
Contents?: true
Size: 800 Bytes
Versions: 15
Compression:
Stored size: 800 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ # # Register and call when Setting class is loaded # Load settings.default.yml # Then override with settings.yml # Don't override default settings in test environment ActiveSupport.on_load(:fat_free_crm_setting) do setting_files = [FatFreeCRM.root.join("config", "settings.default.yml")] setting_files << Rails.root.join("config", "settings.yml") unless Rails.env == 'test' setting_files.each do |settings_file| Setting.load_settings_from_yaml(settings_file) if File.exist?(settings_file) end end
Version data entries
15 entries across 15 versions & 2 rubygems