Redirect all controllers to login if required

We want to skip the filter for sessions controller so that we can login
and we want to skip the filter for static pages because those should be
visible to visitors.
This commit is contained in:
Chris Hunt
2013-06-04 15:32:36 -07:00
parent 85ceb5efa7
commit 92a4828f72
4 changed files with 26 additions and 1 deletions

View File

@ -1,6 +1,6 @@
class StaticController < ApplicationController
skip_before_filter :check_xhr
skip_before_filter :check_xhr, :redirect_to_login_if_required
def show