Module: ActiveRecord::DataClassification::ModelAnnotation::ClassMethods
- Defined in:
- lib/active_record/data_classification/model_annotation.rb
Instance Method Summary collapse
Instance Method Details
#confidential? ⇒ Boolean
20 21 22 |
# File 'lib/active_record/data_classification/model_annotation.rb', line 20 def confidential? _data_security_type == :Confidential end |
#data_security(type = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/active_record/data_classification/model_annotation.rb', line 12 def data_security(type = nil) if type type.in?(CLASSIFICATIONS) or raise ArgumentError, "Unknown classification type #{type}" self._data_security_type = type end _data_security_type end |