Skip to content

Commit

Permalink
Explicitly load settings using Syck
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Apr 20, 2013
1 parent 10416a4 commit 255b33c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/setting.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'syck'

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
Expand Down Expand Up @@ -102,7 +104,8 @@ def database_and_table_exists?
# Loads settings from YAML files
def load_settings_from_yaml(file)
begin
settings = YAML.load_file(file)
#~ settings = YAML.load_file(file)
settings = Syck.load_file(file)
# Merge settings into current settings hash (recursively)
@@yaml_settings.deep_merge!(settings)
rescue Exception => ex
Expand Down

0 comments on commit 255b33c

Please sign in to comment.