Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix base_url validation

  • Loading branch information...
commit 63b7f69c64548d196e3143ab1411095d359fa95a 1 parent 41089f4
@sr sr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/janky.rb
View
2  lib/janky.rb
@@ -84,7 +84,7 @@ def self.setup(settings)
database = URI(settings["DATABASE_URL"])
adapter = database.scheme == "postgres" ? "postgresql" : database.scheme
- if settings["JANKY_BASE_URL"][-1] == ?/
+ if settings["JANKY_BASE_URL"][-1] != ?/
warn "JANKY_BASE_URL must have a trailing slash"
settings["JANKY_BASE_URL"] = settings["JANKY_BASE_URL"] + "/"
end
Please sign in to comment.
Something went wrong with that request. Please try again.