Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

Commit

Permalink
Fix 1.9.x compatibility since Object.constants now returns Symbols
Browse files Browse the repository at this point in the history
and not Strings as in previous versions
  • Loading branch information
ripienaar committed Jan 31, 2012
1 parent 0ab947a commit e390143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/oldskool/router.rb
Expand Up @@ -39,7 +39,7 @@ def route(params)

handler_class = "%sHandler" % [handler[:type].to_s.capitalize]

if Oldskool.constants.include?(handler_class)
if Oldskool.constants.map{|k| k.to_s}.include?(handler_class)
if defaulting
Oldskool.const_get(handler_class).new(params, handler, @config).handle_request("", params[:q])
else
Expand Down
2 changes: 1 addition & 1 deletion lib/oldskool/version.rb
@@ -1,3 +1,3 @@
module Oldskool
VERSION = "0.0.3"
VERSION = "0.0.4"
end

0 comments on commit e390143

Please sign in to comment.