diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-12 11:32:15 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-12 11:32:15 -0800 |
commit | 02b716a322d07fbb87eec0ad48f7029da1682648 (patch) | |
tree | 212ab284a9957c84e9f9f614b332ad2237d2f28f | |
parent | 5d2b5ba23e93f4fd4992c418c9bb2fc721df4206 (diff) | |
download | rails-02b716a322d07fbb87eec0ad48f7029da1682648.tar.gz rails-02b716a322d07fbb87eec0ad48f7029da1682648.tar.bz2 rails-02b716a322d07fbb87eec0ad48f7029da1682648.zip |
Prefer a feature check to a version check
-rw-r--r-- | activesupport/lib/active_support/core_ext/rexml.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/rexml.rb b/activesupport/lib/active_support/core_ext/rexml.rb index 187f3e0f5e..d19d75d964 100644 --- a/activesupport/lib/active_support/core_ext/rexml.rb +++ b/activesupport/lib/active_support/core_ext/rexml.rb @@ -6,7 +6,7 @@ require 'rexml/entity' # 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 |