Module: JbuilderScope
- Defined in:
- lib/jbuilder_reopen/jbuilder_scope.rb
Instance Method Summary collapse
Instance Method Details
#_scope(_attributes = Jbuilder::BLANK) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/jbuilder_reopen/jbuilder_scope.rb', line 2 def _scope(_attributes=Jbuilder::BLANK) parent_attributes, parent_formatter = @attributes, @key_formatter @attributes = _attributes yield @attributes ensure @attributes, @key_formatter = parent_attributes, parent_formatter end |