Guest User

Untitled

a guest
Mar 16th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. module TrisanoSecuritay
  2. module Controllers
  3. module ApplicationController
  4. reloadable!
  5. hook! 'ApplicationController'
  6.  
  7. def load_user_with_authlogic
  8. raise "Yay - you finally got here!"
  9. end
  10.  
  11. def self.included(base)
  12. base.before_filter :load_user, :except => [:login]
  13. base.alias_method_chain :load_user, :authlogic
  14. end
  15. end
  16. end
  17. end
Add Comment
Please, Sign In to add comment