Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow ERB use in campaign_monitor_subscriber.yml
  • Loading branch information
Matthew Conway committed Oct 4, 2012
1 parent f4c39b8 commit b7fc482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/campaign_monitor_subscriber/basic_configuration.rb
Expand Up @@ -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.