Permalink
Browse files

fix base_url validation

  • Loading branch information...
sr committed Feb 5, 2012
1 parent 41089f4 commit 63b7f69c64548d196e3143ab1411095d359fa95a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/janky.rb
View
@@ -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

0 comments on commit 63b7f69

Please sign in to comment.