summaryrefslogtreecommitdiff
path: root/app/controllers/page_controller.rb
blob: 10ecf2c6dd79a02cbc8187c6f10b3eff4efaec59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class PageController < ApplicationController
  # load_and_authorize_resource :class => false  
  # CanCan doesn't work here really good because Page is not a resource.

  skip_before_filter :home_breadcrumb, :only => [:index]
  
  def index
    if current_user
      redirect_to [current_user.current_tenant, current_user]
    else
      redirect_to log_in_path
    end
  end

  def help

  end

end