Last active
August 29, 2015 13:57
-
-
Save myobie/9771994 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example that works | |
get "/", {}, "rack.session" => { user_id: 1 } | |
# example that I wish worked | |
logged_in_as(1) { get "/" } | |
# or this | |
get_as_logged_in "/" | |
__END__ | |
Somehow the logged_in_as would supply a third argument to the get. I've had | |
the idea to try to define my own get and super, but it's all just strangely | |
complicated. | |
I am also sick and out of my mind, so this could just be a bad idea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment