Skip to content

Commit

Permalink
Fix Rack 2 deprecation warning (#92)
Browse files Browse the repository at this point in the history
Request#[] and Request#[]= were deprecated
in rack/rack#1069
  • Loading branch information
Mauro Otonelli authored and soveran committed Dec 27, 2017
1 parent 2811c34 commit 441de1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cuba.rb
Expand Up @@ -262,7 +262,7 @@ def extension(ext = "\\w+")
# # If not provided, username == "guest"
# end
def param(key, default = nil)
value = req[key] || default
value = req.params[key] || default

lambda { captures << value unless value.to_s.empty? }
end
Expand Down

0 comments on commit 441de1e

Please sign in to comment.