Skip to content

Commit

Permalink
[fluent#360] Add include support for Ruby DSL
Browse files Browse the repository at this point in the history
    mod instance_eval 2nd args
  • Loading branch information
llby committed Jun 15, 2016
1 parent f348b1c commit e0efc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/config/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def include(*args)
if args.first =~ /\.rb$/
path = File.expand_path(args.first)
data = File.read(path)
self.instance_eval(data, @proxy.include_basepath)
self.instance_eval(data, path)
else
ss = StringScanner.new('')
Config::V1Parser.new(ss, @proxy.include_basepath, '', nil).eval_include(@attrs, @elements, args.first)
Expand Down

0 comments on commit e0efc1d

Please sign in to comment.