Permalink
Browse files

Prefer a feature check to a version check

  • Loading branch information...
1 parent 78e374d commit 6bfd0ac48b7fceec95999027468eca77478fbd61 @jeremy jeremy committed Nov 12, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/rexml.rb
@@ -6,7 +6,7 @@
# This fix is identical to rexml-expansion-fix version 1.0.1
# Earlier versions of rexml defined REXML::Version, newer ones REXML::VERSION
-unless (defined?(REXML::VERSION) ? REXML::VERSION : REXML::Version) > "3.1.7.2"
+unless REXML::Document.respond_to?(:entity_expansion_limit=)
module REXML
class Entity < Child
undef_method :unnormalized

0 comments on commit 6bfd0ac

Please sign in to comment.