module Liquid
module Locomotive
module Tags
class InlineEditor < ::Liquid::Tag
def render(context)
if context.registers[:current_account]
output = %{
}
if context.registers[:inline_editor]
controller = context.registers[:controller]
output << %{
}
if controller.send(:protect_against_forgery?)
output << %(\n).html_safe
end
else
output << %{
}
end
output << %{
}
end
end
end
::Liquid::Template.register_tag('inline_editor', InlineEditor)
end
end
end