Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UsersController < ApplicationController
- before_filter :logged_in?, :except => [:login, :process_login]
- private # subsequent methods are private to this class, until 'public' given
- def logged_in?
- redirect_to login_path and return unless
- (@current_user = get_logged_in_user)
- end
- public
- # ...controller actions go here
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement