Module: Locomotive::Concerns::ContentType::FilterFields

Extended by:
ActiveSupport::Concern
Included in:
Locomotive::ContentType
Defined in:
app/models/locomotive/concerns/content_type/filter_fields.rb

Instance Method Summary collapse

Instance Method Details

#sanitize_filter_fieldsObject

We do not want to have a blank value in the list of fields used to filter the entries.


17
18
19
20
21
# File 'app/models/locomotive/concerns/content_type/filter_fields.rb', line 17

def sanitize_filter_fields
  if self.filter_fields
    self.filter_fields.reject! { |id| id.blank? }
  end
end