daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Sep 24th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app = Presto::App.new
  2. app.mount SliceName do
  3.  
  4.   http.before do
  5.     unless http.action == :login
  6.       http.redirect http.route(:login) unless http.user
  7.     end
  8.   end
  9. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top