lib/amee/db/config.rb in amee-data-persistence-1.2.0 vs lib/amee/db/config.rb in amee-data-persistence-2.0.0

- old
+ new

@@ -37,10 +37,10 @@ end private def load_storage_method - m = YAML.load_file("#{::Rails.root}/config/persistence.yml")['method'].to_sym rescue nil + m = YAML.load_file("#{RAILS_ROOT}/config/persistence.yml")['method'].to_sym rescue nil raise "amee-data-persistence: Invalid storage method" unless [:metadata, :outputs, :everything].include? m m end end \ No newline at end of file