Sha256: cd26703d9c3cf1cca7b51a41b0f00888488757411dc03cacd84a2c0b095a6010

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

# DOC:
# We use Helper Methods for tree building,
# because it's faster than View Templates and Partials

# SECURITY note
# Prepare your data on server side for rendering
# or use h.html_escape(node.content)
# for escape potentially dangerous content
module JquerySortableTreeHelper
  module RenderTreeHelper
    class Render < JquerySortableTreeHelper::RenderSortableTreeHelper::Render
      def div_item
        h.content_tag(:div, show_link, class: :item)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jquery_sortable_tree-3.1.2 app/helpers/jquery_sortable_tree_helper/render_tree_helper.rb
jquery_sortable_tree-3.1.1 app/helpers/jquery_sortable_tree_helper/render_tree_helper.rb
jquery_sortable_tree-3.1.0 app/helpers/jquery_sortable_tree_helper/render_tree_helper.rb