ez-resources 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: cf4293cdd8cb37b198983b56504cf75b2ad73508b75d984a760d93470c29e36e
4
- data.tar.gz: 2524f6969b4f4ef062ab353a4e8de6502a6f955305f7776842ca154e8d421250
3
+ metadata.gz: ebc92d0fcd558df5916ff3a76e2a050bf8e2f23f636a9ae2c7f0cd0cc2d017a9
4
+ data.tar.gz: c3edef2deeb5367ae837162831821dacd174a4aa24459b52c2f5df71ad990685
5
5
  SHA512:
6
- metadata.gz: 8b5d6095e58d7a4226bf9e34b641274d45a5756123d1351227f5c0d8bdeedb6f88a5418dcedb9017d88a40a599b941d31b3ddbdcc49428a88b1985c0186d6416
7
- data.tar.gz: af11410a588c09295c8d0cb22ef6e747b3c36a3bf4abe53b614f617e1bde086585caf4c6dc23b5dfd258a94c820ec46aeb9cf633e41776664ff5470773b771cc
6
+ metadata.gz: e63df64cf4285a99602dfa2cc2e1ddf8942222ee894f5eb7749ae14816ebeafe370371f6cdd6648090da163327fcabc02777d01fdc050d8892be37961e990b84
7
+ data.tar.gz: 76d771724829b4b4e7998df1707924bb1ea267402a96a6971280db3ea1fdbc731629f0b2c8cdee62c6ff7a11d8965cf6f829ff4e5df79e740c1fdc0e19d0c285
@@ -46,9 +46,9 @@ module Ez
46
46
 
47
47
  def record_tr(record, &block)
48
48
  if model.actions.include?(:show) && Manager::Hooks.can?(:can_read?, model, record)
49
- content_tag :tr, class: css_for('collection-table-tr'), id: "#{model.model.name.pluralize.downcase}-#{record.id}", data: { link: model.path_for(action: :show, id: record.id).to_s }, &block
49
+ content_tag :tr, class: css_for('collection-table-tr'), id: "#{model.model.name.demodulize.pluralize.downcase}-#{record.id}", data: { link: model.path_for(action: :show, id: record.id).to_s }, &block
50
50
  else
51
- content_tag :tr, class: css_for('collection-table-tr'), id: "#{model.model.name.pluralize.downcase}-#{record.id}", &block
51
+ content_tag :tr, class: css_for('collection-table-tr'), id: "#{model.model.name.demodulize.pluralize.downcase}-#{record.id}", &block
52
52
  end
53
53
  end
54
54
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ez
4
4
  module Resources
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodya Sveredyuk