cuba
cuba copied to clipboard
Rum based microframework for web development.
``` Cuba.settings[ :state ] = Proc.new { "ok" } class A < Cuba; end ``` just does not work. some with singletons, lambdas, methods, etc I solved the problem for...
Hi, Would make sense to allow empty strings as a default param value? While it makes sense to prevent empty strings from being captured from a request, the current implementation...
This fixes an issue where settings are added to Cuba.settings _after_ inheriting from `Cuba` are not picked up by the child classes. The problem is described in issue #21. If...
```ruby def safe? return req.get? || req.head? || req.params["csrf_token"] == token ||#token create every time new one req.env["HTTP_X_CSRF_TOKEN"] == token end Change code ... def existing_token session[:csrf_token] end def safe?...