active_scaffold_signaturepad 0.1.2 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f29454f588da266d260effcd972428c92ed1a11367ce4bf3ce53e2fd1497db54
|
4
|
+
data.tar.gz: 6a0778d3014b743cb7bb3e7985758e05bbf0a39e5f43fdc1f7b8ec2f8ed032c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4022f9b368d931156f78a56410be4e314a1743e20d68dd0e55a7a0cfe3ee832abb6dc4159cc8ec931345033e148c6c306e2c5a3b1cacce25a5a63ed6f86cca9a
|
7
|
+
data.tar.gz: 1a17d91798022b43760bbdfe81e2645eb989ce26a518af153a940872010c728057df575cfba3f99205dea069851ed5482af40be69bd411607bc535b4e2c14764
|
@@ -2,8 +2,8 @@ module ActiveScaffoldSignaturepad
|
|
2
2
|
module ViewHelpers
|
3
3
|
ATTRIBUTES = [:line_colour, :line_width, :line_margin, :line_top, :bg_colour, :pen_colour, :pen_width, :pen_cap, :display_only, :error_message_draw]
|
4
4
|
def signaturepad_attributes(column, ui_options: column.options)
|
5
|
-
attributes = ATTRIBUTES.map{ |attr| [attr, ui_options[attr]] if ui_options[attr] }
|
6
|
-
attributes
|
5
|
+
attributes = ATTRIBUTES.map{ |attr| [attr, ui_options[attr]] if ui_options[attr] }.compact.to_h
|
6
|
+
attributes.reverse_merge!(:error_message_draw => :sign_document)
|
7
7
|
attributes[:type] = ui_options[:type] if ui_options[:type]
|
8
8
|
attributes[:error_message_draw] = as_(attributes[:error_message_draw]) if attributes[:error_message_draw].is_a? Symbol
|
9
9
|
attributes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_signaturepad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Cambra
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|