module SiteHub::CookieRewriting
TODO: - change in to object and remove .reek exclusions for UtilityFunction
Constants
- ENDING_WITH_NEWLINE
Public Instance Methods
update_domain(domain_attribute, substitute_domain)
click to toggle source
# File lib/sitehub/cookie_rewriting.rb, line 18 def update_domain(domain_attribute, substitute_domain) substitute = substitute_domain.dup if domain_attribute.value.start_with?(FULL_STOP) domain_attribute.update(substitute.prepend(FULL_STOP)) else domain_attribute.update(substitute) end end