I have a non-Rails project in which I am loading some settings from a YAML file:
config = YAML::load(File.open(\"#{LOG_ROOT}/config/database.yml\"))
You lose nothing except a few kB of disk space by installing the Active Support gem. In your code, you require only the function you want:
require 'active_support/core_ext/hash/indifferent_access'
That way, you can be sure you are not getting anything else to mess up your namespace.