We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3db6b80 + a248245 commit a721db2Copy full SHA for a721db2
lib/critical_path_css/configuration.rb
@@ -1,9 +1,10 @@
1
+require 'erb'
2
module CriticalPathCss
3
class Configuration
4
CONFIGURATION_FILENAME = 'critical_path_css.yml'
5
6
def initialize
- @configurations = YAML.load_file(configuration_file_path)[Rails.env]
7
+ @configurations = YAML.load(ERB.new(File.read(configuration_file_path)).result)[Rails.env]
8
end
9
10
def base_url
0 commit comments