ERB support in all configs
Standard rails config supports ERB in config yaml. Which is nice and e.g. allows to read config from ENV, which is important in more modern deployments.
However, it looks like squire doesn't parse the config as ERB.
Adding the following monkey patch in initializers enables this feature:
# cat config/initializers/01_erb_config.rb
module Squire
module Parser
module YAML
def self.parse(path)
::YAML::load(ERB.new(File.read(path)).result)
end
end
end
end
We should decided if we want to support that by default.