diff options
Diffstat (limited to 'activesupport/lib/active_support/vendor/builder')
-rw-r--r-- | activesupport/lib/active_support/vendor/builder/xmlbase.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/vendor/builder/xmlbase.rb b/activesupport/lib/active_support/vendor/builder/xmlbase.rb index b0485636ea..57c8ddfc30 100644 --- a/activesupport/lib/active_support/vendor/builder/xmlbase.rb +++ b/activesupport/lib/active_support/vendor/builder/xmlbase.rb @@ -122,19 +122,19 @@ module Builder end def _capture_outer_self(block) - @self = eval("self", block) + @self = eval('self', block.instance_eval { binding }) end - + def _newline return if @indent == 0 text! "\n" end - + def _indent return if @indent == 0 || @level == 0 text!(" " * (@level * @indent)) end - + def _nested_structures(block) @level += 1 block.call(self) |