module JbuilderScope
Public Instance Methods
_scope(_attributes=Jbuilder::BLANK) { || ... }
click to toggle source
# 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