Module: MaskedIdentifier::ClassMethods
- Defined in:
- lib/masked-identifier.rb
Instance Attribute Summary collapse
-
#_masked_identifier_options ⇒ Object
Returns the value of attribute _masked_identifier_options.
Instance Method Summary collapse
Instance Attribute Details
#_masked_identifier_options ⇒ Object
Returns the value of attribute _masked_identifier_options.
33 34 35 |
# File 'lib/masked-identifier.rb', line 33 def @_masked_identifier_options end |
Instance Method Details
#has_masked_identifier(options = {}) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/masked-identifier.rb', line 35 def has_masked_identifier( = {}) [:property] ||= 'masked_identifier' self. = before_create :add_masked_identifier # before_save :add_masked_identifier, on: :create send :include, InstanceMethods end |