lib/sportdb/loader.rb in sportdb-0.9.3 vs lib/sportdb/loader.rb in sportdb-0.9.4
- old
+ new
@@ -47,10 +47,10 @@
Prop.create!( key: "db.#{fixture_name_to_prop_key(name)}.version", value: "file.rb.#{File.mtime(path).strftime('%Y.%m.%d')}" )
end
def load_fixtures_builtin( name ) # load from gem (built-in)
- path = "#{SportDB.root}/db/#{name}.rb"
+ path = "#{SportDB.data_path}/#{name}.rb"
puts "*** loading data '#{name}' (#{path})..."
code = File.read_utf8( path )