class Liquid::Ifchanged

Public Instance Methods

render_to_output_buffer(context, output) click to toggle source
Calls superclass method
# File lib/liquid/tags/ifchanged.rb, line 5
def render_to_output_buffer(context, output)
  block_output = +''
  super(context, block_output)

  if block_output != context.registers[:ifchanged]
    context.registers[:ifchanged] = block_output
    output << block_output
  end

  output
end