Class: Object

Inherits:
BasicObject
Defined in:
lib/hash_digest.rb,
lib/hash_digest.rb

Overview

EVERYTHING BELOW IS COPIED FROM ACTIVESUPPORT 4.0.2

Instance Method Summary collapse

Instance Method Details

#to_hash_digest_paramObject


46
47
48
# File 'lib/hash_digest.rb', line 46

def to_hash_digest_param
  to_s
end

#to_hash_digest_query(key) ⇒ Object


72
73
74
75
# File 'lib/hash_digest.rb', line 72

def to_hash_digest_query(key)
  # "#{::CGI.escape(key.to_hash_digest_param)}=#{::CGI.escape(to_hash_digest_param)}"
  "#{::EscapeUtils.escape_url(key.to_hash_digest_param)}=#{::EscapeUtils.escape_url(to_hash_digest_param)}"
end