Module: Redactable
- Extended by:
- ActiveSupport::Concern
- Included in:
- AntiAbuse::Reports::Note, Issuable, Note, Snippet
- Defined in:
- app/models/concerns/redactable.rb
Overview
This module searches and redacts sensitive information in redactable fields. Currently only unsubscribe link is redacted. Add following lines into your model:
include Redactable
redact_field :foo
Constant Summary collapse
- UNSUBSCRIBE_PATTERN =
%r{/sent_notifications/\h{32}/unsubscribe}