pxs-forms 0.1.4.7 → 0.1.4.9
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/pxs/forms/links_helper.rb +2 -2
- data/lib/pxs/forms/models_helper.rb +1 -1
- data/lib/pxs/forms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05a38e64a91e00a387ea2dbc20d314346ac2f2495abd0022ace0fc4a77b5c8f3
|
4
|
+
data.tar.gz: 1df5540fca30533907c0f0ad958e5337f5a2a437fd24f76734dff4610e44d91e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1848a2a0c0a6e65182d7287f0562c68e73ab5ca695d1711296cb942741ccc57d3faca7c9edd35df3aee6a64e65c5a0ffe0cf1cf7bae0b22af7364571813ee94
|
7
|
+
data.tar.gz: af748974f3827bc3dc6321a690b624c4147d0c52ee815a2811debd77baf418e8bbf9500ce98ecabbed7ce7188d666823751779b686cddd869b0495c0e071cb81
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,7 @@ module Pxs
|
|
5
5
|
|
6
6
|
# a link that triggers a turbo request
|
7
7
|
def turbo_link_to(text, target, options = {})
|
8
|
-
link_to text, target, class: options[:class] || nil, data: { turbo_stream: true, turbo_method: options[:method] || :get, turbo_confirm: options[:confirm] }, id: options[:id], title: options[:title]
|
8
|
+
link_to text, target, class: options[:class] || nil, data: { turbo_stream: true, turbo_method: options[:method] || :get, turbo_confirm: options[:confirm] }.merge(options[:data] || {}), id: options[:id], title: options[:title]
|
9
9
|
end
|
10
10
|
|
11
11
|
# a button that triggers a turbo request
|
@@ -16,7 +16,7 @@ module Pxs
|
|
16
16
|
|
17
17
|
# a button that makes an HTML request
|
18
18
|
def link_button_to(text, target, options = {})
|
19
|
-
link_to text, target, class: merge_option(:class, "button", options)[:class], method: options[:method] || :get, id: options[:id], title: options[:title]
|
19
|
+
link_to text, target, class: merge_option(:class, "button", options)[:class], method: options[:method] || :get, id: options[:id], title: options[:title], data: options[:data]
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|
data/lib/pxs/forms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pxs-forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.4.
|
4
|
+
version: 0.1.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Poubelle
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|