mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Mordernize code base with __dir__ and require_relative
This commit is contained in:
@@ -5,7 +5,7 @@ module Database
|
||||
# to liquid as assigns. All this is based on Shopify
|
||||
def self.tables
|
||||
@tables ||= begin
|
||||
db = YAML.load_file(File.dirname(__FILE__) + '/vision.database.yml')
|
||||
db = YAML.load_file("#{__dir__}/vision.database.yml")
|
||||
|
||||
# From vision source
|
||||
db['products'].each do |product|
|
||||
|
||||
Reference in New Issue
Block a user