Method: ActiveSupport::Digest.hash_digest_class=

Defined in:
lib/active_support/digest.rb

.hash_digest_class=(klass) ⇒ Object

Raises:

  • (ArgumentError)


12
13
14
15
# File 'lib/active_support/digest.rb', line 12

def hash_digest_class=(klass)
  raise ArgumentError, "#{klass} is expected to implement hexdigest class method" unless klass.respond_to?(:hexdigest)
  @hash_digest_class = klass
end