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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2baf488a4d1a35a90e7a53d588c8d843fccab4cc8ce9de5cda36920d4d9b22aa
4
- data.tar.gz: a00ac15d3663ea1e7c313170681bd3d949c30024862a98c44afc891e2d611ca1
3
+ metadata.gz: 88fd867f333bb338b58f553689d7d244d4c327ddf9a2317124c9b34111e8bd8b
4
+ data.tar.gz: b7b4925c4dc382c2de8201bf6d1b4d7b8e4693f284ca7ba89b269629d5d6785a
5
5
  SHA512:
6
- metadata.gz: 4d91c842de66da094997e6e270349af7fcc76ef66ab32a597fd444e857ee97b3990c0ab3e99539534e8b43dc1478573a41f8c707533805b63ea1c704b0f87dc1
7
- data.tar.gz: 297b12e919ba35ac50d90ae3e73b8d87ff211cdc401bbdcc02cf20457502a63efed0b18b871f165fabc278f3e21b4b231075de9ba87ea316302f68dd9390e45b
6
+ metadata.gz: 497f8c620f1b04ae8789eb6591e9e8689ce0cc44a5fc78762e9895a45befa2b552fac6cd6e97069a7ed3ba268a0dfaf9af3cae628d5862f62ad00d6a1d61c18f
7
+ data.tar.gz: 640cb7933dd6614c70b8bdb3196ef724a4bec0679e2f62b80207a02c5992da2786861ec4e553d4471bcc1e9e6ea18454bf3726b7e54b2b1b9e0142a2612c5b33
@@ -40,6 +40,10 @@ module Formwandler
40
40
  _evaluate_field_definition_value(:disabled)
41
41
  end
42
42
 
43
+ def readonly?
44
+ _evaluate_field_definition_value(:readonly)
45
+ end
46
+
43
47
  def options
44
48
  all_options - hidden_options
45
49
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Formwandler
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formwandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Bilharz