table_sortable 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5279a6fe61465b9302bd136458b22910ff165fcf
4
- data.tar.gz: 2435e4f604291e32bd9fadf74d1320d151b975a2
3
+ metadata.gz: 4c897aef9c9560c97f4e86d21c4b3c7748146930
4
+ data.tar.gz: 35bbcc31b6cee05c2bbd2487e9e220105431d3fa
5
5
  SHA512:
6
- metadata.gz: fe0393056ab45eb0de56d5c23d28592b1cb16c691dd55cf9124212b0953d423f146766e38214c2e33780299f8ac18e5ae189ff41e63f846300bc4815223cb501
7
- data.tar.gz: d5b042e11f44d186a80ff4a5bdce8f9de6a15259f262b6c1db6d07a0da123b44209d7a8ec582b78332717547c30e37bf35478b9b43ee9be1e9465503001ee353
6
+ metadata.gz: f5d17f0dd89132fac1362a5440c0725f95be281f267893e9c63e9bec86cb2b4c990d7f71327d2547998c8098171da5a03034808bb5a98be631b2dba1d23e1f60
7
+ data.tar.gz: '060482b829d5c3fe9721e9c163f30e405a671db9d75b5de0aff1bd019045ca91500443393b4f146ba985117ee2638da1bc94408069c8dc0bdc58dd85c4c2045b'
@@ -1,3 +1,3 @@
1
1
  module TableSortable
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
@@ -39,10 +39,10 @@ module TableSortable
39
39
  end
40
40
  th_options['data-value'] = filter.default_value if filter.default_value
41
41
  th_options.merge!(html_options)
42
- view_path = "#{col.template_path || controller_path}/table_sortable/"
43
- view_filename = "#{col.template}_header.html"
44
- if Dir.glob(File.join(Rails.root, 'app', 'views', view_path, "_#{view_filename}.*")).any?
45
- render partial: File.join(view_path, view_filename),
42
+ view_path = col.template_path || File.join(Rails.root, 'app', 'views', "#{controller_path}/table_sortable/")
43
+ view_filename = "_#{col.template}_header.html"
44
+ if Dir.glob(File.join(view_path, "#{view_filename}.*")).any?
45
+ render file: File.join(view_path, view_filename),
46
46
  locals: {label: label,
47
47
  column: col,
48
48
  index: index}
@@ -61,10 +61,10 @@ module TableSortable
61
61
  td_options = {}
62
62
  td_options['data-text'] = value if value != content
63
63
  td_options.merge!(html_options)
64
- view_path = "#{col.template_path || controller_path}/table_sortable/"
65
- view_filename = "#{col.template}_column.html"
66
- if Dir.glob(File.join(Rails.root, 'app', 'views', view_path, "_#{view_filename}.*")).any?
67
- render partial: File.join(view_path, view_filename),
64
+ view_path = col.template_path || File.join(Rails.root, 'app', 'views', "#{controller_path}/table_sortable/")
65
+ view_filename = "_#{col.template}_column.html"
66
+ if Dir.glob(File.join(view_path, "#{view_filename}.*")).any?
67
+ render file: File.join(view_path, view_filename),
68
68
  locals: {content: content,
69
69
  value: value,
70
70
  source: record,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Davidov