Methods
Public Class methods
[ show source ]
# File activesupport/lib/active_support/core_ext/rexml.rb, line 27
27: def self.entity_expansion_limit= val
28: @@entity_expansion_limit = val
29: end
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/core_ext/rexml.rb, line 31
31: def record_entity_expansion!
32: @number_of_expansions ||= 0
33: @number_of_expansions += 1
34: if @number_of_expansions > @@entity_expansion_limit
35: raise "Number of entity expansions exceeded, processing aborted."
36: end
37: end