Permalink
Browse files

Allow ERB use in campaign_monitor_subscriber.yml

  • Loading branch information...
1 parent f4c39b8 commit b7fc4825d2f3441d3fa29ee5e3b25c7b77c13496 @mattreduce mattreduce committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/campaign_monitor_subscriber/basic_configuration.rb
@@ -10,7 +10,7 @@ module BasicConfiguration
# All yaml config is namespaced under the environment name (the same way
# database.yml does it)
def raw_cms_config
- @raw_cms_config ||= YAML::load_file(File.join("config/campaign_monitor_subscriber.yml"))[::Rails.env]
+ @raw_cms_config ||= YAML.load(ERB.new(File.read("config/campaign_monitor_subscriber.yml")).result)[Rails.env]
end
end
end

0 comments on commit b7fc482

Please sign in to comment.