Module: DigestibleAttributes::Digester
- Extended by:
- ActiveSupport::Concern
- Included in:
- CallbackActions
- Defined in:
- lib/digestible_attributes/digester.rb
Constant Summary collapse
- NULL_ESCAPE =
"\u0000".freeze
- FIELD_ESCAPE =
"\uffef".freeze
- FIELD_SEPARATOR =
"\uffff".freeze
Instance Method Summary collapse
Instance Method Details
#calculate_digest ⇒ Object
9 10 11 |
# File 'lib/digestible_attributes/digester.rb', line 9 def calculate_digest OpenSSL::Digest(self.class.digest_algorithm).hexdigest(digestible_string) end |