ez-resources 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: dadd125c3e79374bebeec76245b56d87f56060706dc2bf7622b546d3096ed319
4
- data.tar.gz: 6beaea0d553ce0ae5ce008006ad0c7b435eb651a38709a69f976c87eb6e68e65
3
+ metadata.gz: cf4293cdd8cb37b198983b56504cf75b2ad73508b75d984a760d93470c29e36e
4
+ data.tar.gz: 2524f6969b4f4ef062ab353a4e8de6502a6f955305f7776842ca154e8d421250
5
5
  SHA512:
6
- metadata.gz: f67e74bba229bc0a2c7bce3be22f4ee8dfd3ef6e922aab1f1f69e9e6d49f2bafbd356a91773a8e9794c71d0980f6c65ca5f9cfb96f030ea1d67b0dcdd6ad1d65
7
- data.tar.gz: 6dfc56195eb5877e94bd3b6d197679e7fb48ed5ae368d85eb1601de7be6292fdefadfba9d733f96bb3e348faa036105c39dac5f606742565bea83a282aeb798a
6
+ metadata.gz: 8b5d6095e58d7a4226bf9e34b641274d45a5756123d1351227f5c0d8bdeedb6f88a5418dcedb9017d88a40a599b941d31b3ddbdcc49428a88b1985c0186d6416
7
+ data.tar.gz: af11410a588c09295c8d0cb22ef6e747b3c36a3bf4abe53b614f617e1bde086585caf4c6dc23b5dfd258a94c820ec46aeb9cf633e41776664ff5470773b771cc
@@ -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: "#{resources_name.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.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: "#{resources_name.downcase}-#{record.id}", &block
51
+ content_tag :tr, class: css_for('collection-table-tr'), id: "#{model.model.name.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.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodya Sveredyuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cells-rails