Class: Locomotive::Liquid::Tags::InheritedBlock

Inherits:
Liquid::InheritedBlock
  • Object
show all
Defined in:
lib/locomotive/liquid/tags/inherited_block.rb

Instance Method Summary collapse

Instance Method Details

#end_tagObject



6
7
8
9
10
11
12
# File 'lib/locomotive/liquid/tags/inherited_block.rb', line 6

def end_tag
  super
  
  if !self.contains_super?(@nodelist) # then disable all editable_elements coming from the parent block too and not used
    @context[:page].disable_parent_editable_elements(@name) unless @context[:page].nil?
  end
end