Module: Reform::Form::ReadonlyAttributesOptions

Included in:
Sync::InputRepresenter
Defined in:
lib/reform/form/virtual_attributes.rb

Instance Method Summary collapse

Instance Method Details

#optionsObject



14
15
16
17
18
19
20
# File 'lib/reform/form/virtual_attributes.rb', line 14

def options
  readonly_fields = representable_attrs.
    find_all { |d| d[:virtual] }.
    collect  { |d| d.name.to_sym }

  super.exclude!(readonly_fields)
end