formwandler 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/formwandler/field.rb +5 -2
- data/lib/formwandler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86dd200d3680f5f036bad6b03946529f2c5cf8a5
|
4
|
+
data.tar.gz: d7cc2a2a19d99501d1332964d178e7b8087fb402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21035fb8ff9c567e490970b9eef801583666c294dc3963dbf4d77a2425138d0a76648861884564f52a7d8ba436215f05fc81c132b48ad726d676e3a1bde363cd
|
7
|
+
data.tar.gz: 14370dfa22aee456eecb4cd953fc8374d5d70f4e19a947c1d394358a8c31f9fa81886b43fb77b3dd47ed4c93070620b66fb332afbd598f6b9021fa6b0bc7521a
|
data/lib/formwandler/field.rb
CHANGED
@@ -21,8 +21,11 @@ module Formwandler
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def value
|
24
|
-
|
25
|
-
|
24
|
+
transform_value(raw_value, field_definition.out_transformation)
|
25
|
+
end
|
26
|
+
|
27
|
+
def raw_value
|
28
|
+
model_instance ? model_instance.public_send(field_definition.source) : @value
|
26
29
|
end
|
27
30
|
|
28
31
|
def hidden?
|
data/lib/formwandler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formwandler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Bilharz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|