Module: Tramway::Core::ExtendableFormsHelpers::IgnoredPropertiesHelper

Defined in:
app/forms/tramway/core/extendable_forms_helpers/ignored_properties_helper.rb

Instance Method Summary collapse

Instance Method Details

#define_ignored_properties_methodObject



4
5
6
7
8
9
10
# File 'app/forms/tramway/core/extendable_forms_helpers/ignored_properties_helper.rb', line 4

def define_ignored_properties_method
  define_method :jsonb_ignored_properties do |properties|
    properties.map do |property|
      property[0].to_s if property[1][:object].field_type == 'file'
    end.compact
  end
end