summaryrefslogtreecommitdiff
path: root/tool/ruby_vm/helpers/dumper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/ruby_vm/helpers/dumper.rb')
-rw-r--r--tool/ruby_vm/helpers/dumper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/ruby_vm/helpers/dumper.rb b/tool/ruby_vm/helpers/dumper.rb
index ccd5717cc8..ae2a0145cf 100644
--- a/tool/ruby_vm/helpers/dumper.rb
+++ b/tool/ruby_vm/helpers/dumper.rb
@@ -25,7 +25,7 @@ class RubyVM::Dumper
end
def new_erb spec
- path = Pathname.new(__FILE__).realpath.dirname
+ path = Pathname.new(__FILE__).relative_path_from(Pathname.pwd).dirname
path += '../views'
path += spec
src = path.read mode: 'rt:utf-8:utf-8'
@@ -37,7 +37,7 @@ class RubyVM::Dumper
else
erb = ERB.new(src, nil, '%-')
end
- erb.filename = path.realpath.to_path
+ erb.filename = path.to_path
return erb
end
@@ -87,7 +87,7 @@ class RubyVM::Dumper
def initialize dst
@erb = {}
@empty = new_binding
- @file = cstr dst.realdirpath.to_path
+ @file = cstr dst.to_path
end
def render partial, opts = { :locals => {} }