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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 128708650653c1e51cfc92bb6a22c22d9c3fb566
4
- data.tar.gz: 5573832f5ccec75699a06a3e1da4487f5d9033ef
3
+ metadata.gz: 86dd200d3680f5f036bad6b03946529f2c5cf8a5
4
+ data.tar.gz: d7cc2a2a19d99501d1332964d178e7b8087fb402
5
5
  SHA512:
6
- metadata.gz: 1cdb26b69ebb65c23c0c69bb0213fda5b83189c5298b0680fd33ea3bbbcc9598f9cf45cd4dfc611e299f354484fc3b8af43eff9eac307b416fc8d30b5cca81fe
7
- data.tar.gz: 6637758f163b61bc490aeb5063ca7c703a3bafd882938e085066e6e81fdb8ab292a433e0f5616e8638f60a0770e42d47805431109f53c6c403b903549568def8
6
+ metadata.gz: 21035fb8ff9c567e490970b9eef801583666c294dc3963dbf4d77a2425138d0a76648861884564f52a7d8ba436215f05fc81c132b48ad726d676e3a1bde363cd
7
+ data.tar.gz: 14370dfa22aee456eecb4cd953fc8374d5d70f4e19a947c1d394358a8c31f9fa81886b43fb77b3dd47ed4c93070620b66fb332afbd598f6b9021fa6b0bc7521a
@@ -21,8 +21,11 @@ module Formwandler
21
21
  end
22
22
 
23
23
  def value
24
- _value = (model_instance ? model_instance.public_send(field_definition.source) : @value)
25
- transform_value(_value, field_definition.out_transformation)
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?
@@ -1,3 +1,3 @@
1
1
  module Formwandler
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  end
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
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-09-15 00:00:00.000000000 Z
11
+ date: 2017-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails