module ActiveModel::Sanitizable

Overview

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.

Defined in:

active-model/sanitizer.cr

Instance Method Summary

Instance Method Detail

abstract def sanitize(policy : Symbol) : self #

[View source]