turbo_material 0.2.9 → 0.2.12

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: b8d13c80c1d99c4442662e22b7c70abe40987aff35db2b561c3d5cac3c584884
4
- data.tar.gz: 476769d57825b11071f7f8623b83d6b96daaca2cdadffa778556e28f0c2a1e12
3
+ metadata.gz: 67b932de7493d017be59e254dc7ae48179d023b4bac61d61b4730e40bfdfbf9a
4
+ data.tar.gz: 362ba6b7f0e92008cef044cad38d450e91d2ee68653f3307a08a02681b9c5763
5
5
  SHA512:
6
- metadata.gz: faaa923b8cf005ac56252b62661abb77fdd986ecade89573820038da6cf84fe4b5ee0bef3d5a502a33c0dbfa855a37f4e1e6ed6a60d33ccd000ed79ba9992177
7
- data.tar.gz: b7324433f491803e0c7f47a53ed276c7cdf39c4858479df78e48241d1b3f5c1c77be5ab221cdbea71ffa142061c75fd60e3aa1cc74238452732c1779ef959778
6
+ metadata.gz: b51b0c7045bb6f4a49631162a9b9a0842866fe1c1a5ccf79b5b3cf2342c689cd02f15e7c98171bb87f03f012b4c6ef6d4950335311ba04b79c3c39344ee761ac
7
+ data.tar.gz: 06deb3cb34455a0d0c12f8003893e95d8ffa5ebaf4a53634f4eccc4dbd909b67e75133b062c1fd02342a05aab1f4812b244a7debf8a179c3ad46716ae8e835ac
@@ -1,7 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TurboMaterial
4
- class LookbookController < Lookbook::PreviewController
4
+ class LookbookController < if defined?(Lookbook)
5
+ Lookbook::PreviewController
6
+ else
7
+ ActionController::Base
8
+ end
5
9
  layout 'turbo_material/lookbook'
6
10
  end
7
11
  end
@@ -43,7 +43,7 @@
43
43
  <%= form.hidden_field key, value: params[key] %>
44
44
  <%- end -%>
45
45
  <%= material_select name: 'per_page', form: form, id: 'per-page', options: per_page_options,
46
- value: pagy.items, outlined: true, additional_classes: 'mdc-data-table__pagination-rows-per-page-select mdc-data-table__pagination-rows-per-page-select--outlined' %>
46
+ value: pagy.respond_to?(:items) ? pagy.items : pagy.limit , outlined: true, additional_classes: 'mdc-data-table__pagination-rows-per-page-select mdc-data-table__pagination-rows-per-page-select--outlined' %>
47
47
  <%- end -%>
48
48
 
49
49
  <div class="mdc-data-table__pagination-navigation">
@@ -1,3 +1,3 @@
1
1
  module TurboMaterial
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Moiseev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-12 00:00:00.000000000 Z
11
+ date: 2024-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails