sortable_tree_rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc7310582516a5b5a316ae9f47d8ac947c0e5cc6
4
- data.tar.gz: 3cf0da0fa1dbf9f3c6fe0a51bb9b67e244b9ec4e
3
+ metadata.gz: eb306bf3eaf0b949fb076e0a1629925cc35988ca
4
+ data.tar.gz: a93965d1278bde9cab39d49815f6bb939d3e6645
5
5
  SHA512:
6
- metadata.gz: 0591e786f362e86378347da2e13dd5b38788500aad7187b3d246e98e86fe5090ace318723f4fadc7f8fb0f73e242512a978acae279e5df95603dcbdcbb6498fa
7
- data.tar.gz: 86f6fb5b6e5408141a8d36697e70ca1526ae32bf0e7a1e97a72596bfee7abf040b9c2ba2bb1031b63f7dacd8f2a859b10885e1fa1dcdbba50ee3d70847881bd5
6
+ metadata.gz: 05fc66b86daf4b8219629b9044d7ff674162439731fde56af088de871808186d16892934e24b9c02c00c40482b1eceba7c884af31733889e732825e5177a47cf
7
+ data.tar.gz: 79193480048d6240e2f18fb303b6331d0ff62c2dda720947f7a0ec987ce6e63a8806353195abe210051a933a767f58c1aee557f39e4d89cbd8ec80b5432cabfd
@@ -11,10 +11,12 @@ module SortableTreeHelper
11
11
  content_tag(:li, {id: "cat_#{item.id}"} ) do
12
12
  #(item.title + sortable_tree_render_nested_groups(sub_groups, opts)).html_safe
13
13
 
14
+ title = item.send(opts[:name_method] || :name) || ''
15
+
14
16
  s = content_tag(:div, {class: 'item'}) do
15
17
  (
16
18
  #'<div class="cell left"><i class="handle"></i></div>'\
17
- '<h3 class="cell left">'+item.send(opts[:name_method] || :name)+'</h3>'\
19
+ '<h3 class="cell left">'+title+'</h3>'\
18
20
  '<div class="cell right controls">'+sortable_tree_build_actions(item, opts)+'</div>'
19
21
  ).html_safe
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module SortableTreeRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortable_tree_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Ivak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-28 00:00:00.000000000 Z
11
+ date: 2016-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails