bmizerany (owner)

Revisions

gist: 180028 Download_button fork
public
Public Clone URL: git://gist.github.com/180028.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
before do
  if m = request.path_info.match(/^\/a(\/.*)/)
    if session[:authed] == "true"
      @authed = true
      request.path_info = m[1]
    else
      redirect "/login"
    end
  end
end