Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add to integrity's config.ru to make redirecting happy
Integrity::Helpers::Urls.module_eval do
def url(path)
path = "/#{path}" unless path =~ /^\//
"#{Integrity.config[:base_uri]}#{path}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment