Skip to content

Commit

Permalink
Workaround jruby proc.call issue
Browse files Browse the repository at this point in the history
  • Loading branch information
grddev committed Apr 8, 2012
1 parent a663585 commit 339d9b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/builder/xmlbase.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ def method_missing(sym, *args, &block)
@target @target
end end


# Workaround jruby 1.6.4 bug https://github.com/jruby/jruby/pull/73
if ::Object::const_defined?(:JRUBY_VERSION) && ::JRUBY_VERSION == '1.6.4'
def respond_to?(m)
m != :to_ary
end
end

# Append text to the output target. Escape any markup. May be # Append text to the output target. Escape any markup. May be
# used within the markup brackets as: # used within the markup brackets as:
# #
Expand Down

0 comments on commit 339d9b4

Please sign in to comment.