Skip to content

Commit

Permalink
Fix bug where renderer options were not preserved when chdir-ing
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Dec 17, 2018
1 parent abe945b commit 889ac7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dry/view/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def render(path, scope, &block)
def chdir(dirname)
new_paths = paths.map { |path| path.chdir(dirname) }

self.class.new(new_paths, format: format)
self.class.new(new_paths, format: format, **options)
end

def lookup(name)
Expand Down

0 comments on commit 889ac7b

Please sign in to comment.