Class: Object
- Inherits:
- BasicObject
- Defined in:
- app/services/hephaestus/yetto_service.rb
Instance Method Summary collapse
-
#to_query(key) ⇒ Object
Relies on the fix implemented in github.com/rails/rails/pull/39966 to ensure that blank values don’t result in queries with empty values, eg.
Instance Method Details
#to_query(key) ⇒ Object
Relies on the fix implemented in github.com/rails/rails/pull/39966 to ensure that blank values don’t result in queries with empty values, eg. ‘?filter=`, when we prefer (and accept!) `?filter`.
12 13 14 |
# File 'app/services/hephaestus/yetto_service.rb', line 12 def to_query(key) blank? ? CGI.escape(key.to_param).to_s : "#{CGI.escape(key.to_param)}=#{CGI.escape(to_param.to_s)}" end |