Module: Reform::Form::ReadonlyAttributesOptions

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

Instance Method Summary collapse

Instance Method Details

#optionsObject



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

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

  super.exclude!(readonly_fields)
end