Module: CachableUrl
- Defined in:
- lib/cachable_url.rb,
lib/cachable_url/version.rb
Defined Under Namespace
Classes: Middleware
Constant Summary collapse
- VERSION =
"1.0.0"
Class Method Summary collapse
Class Method Details
.decode(url) ⇒ Object
8 9 10 |
# File 'lib/cachable_url.rb', line 8 def self.decode(url) url.gsub('%1f', '?') if url end |
.encode(url) ⇒ Object
4 5 6 |
# File 'lib/cachable_url.rb', line 4 def self.encode(url) url.gsub('?', '%1f') if url end |