base_editing_bootstrap 0.15.0 → 0.16.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: 6aef652b3fc0651d54b2a217bbb32a6e750135ffc1216faa82dee66ad788e5b4
4
- data.tar.gz: b9cf8df48a6c26bb2e67b7d65d9059e4fa974defb7e58ef1863f8e065e75af7a
3
+ metadata.gz: e764be908fc80fc7426404c064b407cd2b47239c30d81cb812f30d26e013e0c6
4
+ data.tar.gz: ce54c97213e70582b4493632cfd9652e2a33c8774d91106854381af17119adda
5
5
  SHA512:
6
- metadata.gz: 0d639657a9314a263c38b30e390af56f21b94071f835f4d59ccea7818f7799a3899081c534e2183349122968bd81347904ea1eb46996fa9190521039785b881d
7
- data.tar.gz: b87959282627c61dc5b8f233503a3932cc0cb0a53ba25a192065a9ee765b95a754b55efc5998e4ec1032ca9ecdee0db334edce0f19563621c0026d97d873be2e
6
+ metadata.gz: ac4e714e64560dbaa5b5851e67ff3ac439cd9ec5aa2d21b8a5fa246e0850da6f45f641b892576343604ca01bfb3dc984e7afab63470f1818e53479f20e1c5aff
7
+ data.tar.gz: ae23fcf542349cd98c4d4a1c9f6435261a54fa39c44fdf981e30f179319e04f1c6b0cdba4485acff348fa6fc8d0e0241b30e28d5f8f42f08a18b6fddfc73346a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## 0.16.1 - 2024-11-22
6
+ #### Bug Fixes
7
+ - Correct case when attribute to print is virtual - (b86e478) - Marino Bonetti
8
+ #### Documentation
9
+ - Fix documentation - (8be21a5) - Marino Bonetti
10
+
11
+ - - -
12
+
13
+ ## 0.16.0 - 2024-11-22
14
+ #### Features
15
+ - Add custom class to check-box forms - (0ff856c) - Marino Bonetti
16
+
17
+ - - -
18
+
5
19
  ## 0.15.0 - 2024-11-11
6
20
  #### Bug Fixes
7
21
  - Add Password for in standard fields - (593c8c2) - Marino Bonetti
data/README.md CHANGED
@@ -88,7 +88,7 @@ Utilizzo per modello base, in questo esempio prendiamo come modello Post come es
88
88
  class PostsController < BaseEditingController
89
89
  ##
90
90
  # Set default sort order for ransack
91
- # self.default_sort= ["id"]
91
+ # self.default_sorts= ["id"]
92
92
  end
93
93
  ```
94
94
  - Aggiungere la rotta: `resources :posts`
@@ -1,3 +1,3 @@
1
1
  <%# Renderizza il campo nella tabella della pagina dei risultati %>
2
2
  <%# locals: (obj:,field:) -%>
3
- <td><%= obj.read_attribute(field) %></td>
3
+ <td><%= obj.send(field) %></td>
@@ -1,3 +1,3 @@
1
1
  <%# Renderizza il campo nella tabella della pagina dei risultati %>
2
2
  <%# locals: (obj:,field:) -%>
3
- <td><%= boolean_to_icon obj.read_attribute(field) %></td>
3
+ <td><%= boolean_to_icon obj.send(field) %></td>
@@ -1,3 +1,3 @@
1
1
  <%# Renderizza il campo nella tabella della pagina dei risultati %>
2
2
  <%# locals: (obj:,field:) -%>
3
- <td><%= l(obj.read_attribute(field), format: :long) %></td>
3
+ <td><%= l(obj.send(field), format: :long) %></td>
@@ -1 +1 @@
1
- 0.15.0
1
+ 0.16.1
@@ -68,9 +68,16 @@ module BaseEditingBootstrap::Forms
68
68
  self.check_box(method, options, checked_value, unchecked_value)
69
69
  end
70
70
 
71
- def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
71
+ def collection_check_boxes(method,
72
+ collection,
73
+ value_method,
74
+ text_method,
75
+ options = {},
76
+ html_options = {},
77
+ &block)
78
+ form_check_classes = (["form-check"] + [(html_options.delete(:form_check_class){""}).split(" ").collect(&:strip)]).compact.join(" ")
72
79
  super do |builder|
73
- @template.content_tag(:div, class: "form-check") do
80
+ @template.content_tag(:div, class: form_check_classes) do
74
81
  builder.check_box(class: "form-check-input") + builder.label(class: "form-check-label")
75
82
  end
76
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_editing_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-11 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails