Sha256: 4a4cad1221684354f542404363970b6c17a067cd2a94bfa0566dfbe23a5a9c57
Contents?: true
Size: 569 Bytes
Versions: 7
Compression:
Stored size: 569 Bytes
Contents
class Reform::Form < Reform::Contract # TODO: this should be in Representer namespace. module EmptyAttributesOptions def options empty_fields = representable_attrs. find_all { |d| d[:empty] }. collect { |d| d.name.to_sym } super.exclude!(empty_fields) end end module ReadonlyAttributesOptions def options readonly_fields = representable_attrs. find_all { |d| d[:virtual] }. collect { |d| d.name.to_sym } super.exclude!(readonly_fields) end end end
Version data entries
7 entries across 7 versions & 1 rubygems