lib/ridgepole/dsl_parser/context.rb in ridgepole-0.8.6 vs lib/ridgepole/dsl_parser/context.rb in ridgepole-0.8.7

- old
+ new

@@ -102,9 +102,13 @@ else Kernel.require(file) end end + def require_relative(relative_path) + require(File.expand_path(relative_path, File.dirname(caller[0]))) + end + def execute(sql, _name = nil, &cond) @__execute << { sql: sql, condition: cond, }