Skip to content

Commit

Permalink
fix build for Ruby >= 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed May 3, 2015
1 parent 6d9fc0c commit a3fd136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wunderbar/html-methods.rb
Expand Up @@ -137,7 +137,7 @@ def html(*args, &block)
base ||= Dir.pwd
href = (head.children[1].attrs[:href] || '')
_base = @_scope.env['HTTP_X_WUNDERBAR_BASE']
href = href[_base.length-1..-1] if href.start_with? _base
href = href[_base.length-1..-1] if _base and href.start_with? _base
base += href
base += 'index.html' if base.end_with? '/'
base = Pathname.new(base).parent
Expand Down

0 comments on commit a3fd136

Please sign in to comment.