Skip to content

Commit

Permalink
Made hashes returned from loading configuration files Mashes in order…
Browse files Browse the repository at this point in the history
… to allow indifferent access (since YAML and JSON won't know a difference between strings and symbols).
  • Loading branch information
mtodd committed Jul 1, 2008
1 parent b7b361c commit aebf7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/halcyon/config/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(file, filter_config = true)
# # load method
#
def to_hash(from = :from_yaml)
case from
Mash.new case from
when :from_yaml
require 'yaml'
YAML.load(self.content)
Expand Down

0 comments on commit aebf7c7

Please sign in to comment.