Skip to content

Commit

Permalink
Don't throw an error if the experiments YAML file doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Crouse committed May 24, 2012
1 parent e80ccbd commit 29597e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/absurdity/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class Railtie < ::Rails::Railtie
end

def self.load_experiments
return unless File.exists?("absurdity/experiments.yml")

experiments_to_create = YAML.load_file("absurdity/experiments.yml")[:experiments]
experiments_to_create.each do |experiment_slug, values|
metrics_list = values[:metrics]
Expand Down

0 comments on commit 29597e0

Please sign in to comment.