Method: Reform::Contract::Setup::Readable#setup_options

Defined in:
lib/reform/contract/setup.rb

#setup_options(options) ⇒ Object



41
42
43
44
45
# File 'lib/reform/contract/setup.rb', line 41

def setup_options(options)
  empty_fields = mapper.representable_attrs.find_all { |d| d[:_readable] == false }.collect  { |d| d.name.to_sym }

  options.exclude!(empty_fields)
end