Method: LogicalModel::SafeLog::ClassMethods#sensitive_attribute
- Defined in:
- lib/logical_model/safe_log.rb
#sensitive_attribute(name) ⇒ Object
declares an attribute that is sensitive and should be masked in logs si no se llamó antes a attribute, lo declara
68 69 70 71 72 73 74 |
# File 'lib/logical_model/safe_log.rb', line 68 def sensitive_attribute(name) if attribute_keys.blank? || !attribute_keys.include?(name) attribute(name) end @sensitive_attributes ||= [] @sensitive_attributes << name end |