aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-11-12 11:32:15 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2008-11-12 11:32:15 -0800
commit02b716a322d07fbb87eec0ad48f7029da1682648 (patch)
tree212ab284a9957c84e9f9f614b332ad2237d2f28f /activesupport/lib/active_support/core_ext
parent5d2b5ba23e93f4fd4992c418c9bb2fc721df4206 (diff)
downloadrails-02b716a322d07fbb87eec0ad48f7029da1682648.tar.gz
rails-02b716a322d07fbb87eec0ad48f7029da1682648.tar.bz2
rails-02b716a322d07fbb87eec0ad48f7029da1682648.zip
Prefer a feature check to a version check
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/rexml.rb2
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