module

ActiveModel::Sanitizable

Opt-in interface for user-defined types that want to participate in attribute foo : MyType, sanitize: :text declarations. Include this module and implement sanitize(policy : Symbol) : self. The macro-time type walker accepts any type < this module, and the runtime delegates to the type's own sanitize method.

Instance methods

sanitize(policy : Symbol) : self
Source