Module: ActiveModel::AttributeFilters::Common::Strip::ClassMethods

Defined in:
lib/attribute-filters/common_filters/strip.rb

Overview

This submodule contains class methods used to easily define filter.

Instance Method Summary collapse

Instance Method Details

#strip_attributes(*args) ⇒ Object Also known as: strip_attribute, strips_attribute, strips_attributes

Registers attributes that should be stripped.



37
38
39
# File 'lib/attribute-filters/common_filters/strip.rb', line 37

def strip_attributes(*args)
  attributes_that(:should_be_stripped, args)
end