formwandler 0.7.0 → 0.7.1
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 +4 -0
- data/lib/formwandler/field_definition.rb +2 -1
- data/lib/formwandler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88fd867f333bb338b58f553689d7d244d4c327ddf9a2317124c9b34111e8bd8b
|
4
|
+
data.tar.gz: b7b4925c4dc382c2de8201bf6d1b4d7b8e4693f284ca7ba89b269629d5d6785a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 497f8c620f1b04ae8789eb6591e9e8689ce0cc44a5fc78762e9895a45befa2b552fac6cd6e97069a7ed3ba268a0dfaf9af3cae628d5862f62ad00d6a1d61c18f
|
7
|
+
data.tar.gz: 640cb7933dd6614c70b8bdb3196ef724a4bec0679e2f62b80207a02c5992da2786861ec4e553d4471bcc1e9e6ea18454bf3726b7e54b2b1b9e0142a2612c5b33
|
data/lib/formwandler/field.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative 'field_value_transformer'
|
|
5
5
|
module Formwandler
|
6
6
|
class FieldDefinition
|
7
7
|
attr_reader :name
|
8
|
-
attr_accessor :hidden, :disabled, :default, :delocalize, :model, :source, :options, :array
|
8
|
+
attr_accessor :hidden, :disabled, :readonly, :default, :delocalize, :model, :source, :options, :array
|
9
9
|
|
10
10
|
def initialize(name)
|
11
11
|
@name = name
|
@@ -39,6 +39,7 @@ module Formwandler
|
|
39
39
|
def set_defaults
|
40
40
|
@hidden = false
|
41
41
|
@disabled = false
|
42
|
+
@readonly = false
|
42
43
|
@default = nil
|
43
44
|
@delocalize = nil
|
44
45
|
@model = nil
|
data/lib/formwandler/version.rb
CHANGED