diff options
Diffstat (limited to 'activesupport/lib/active_support/vendor/builder/xmlbase.rb')
-rw-r--r-- | activesupport/lib/active_support/vendor/builder/xmlbase.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/vendor/builder/xmlbase.rb b/activesupport/lib/active_support/vendor/builder/xmlbase.rb index 950d5891e1..b0485636ea 100644 --- a/activesupport/lib/active_support/vendor/builder/xmlbase.rb +++ b/activesupport/lib/active_support/vendor/builder/xmlbase.rb @@ -53,7 +53,7 @@ module Builder unless text.nil? raise ArgumentError, "XmlMarkup cannot mix a text argument with a block" end - _capture_outer_self(block) if @self.nil? + _capture_outer_self(block) unless defined?(@self) && !@self.nil? _indent _start_tag(sym, attrs) _newline |