Sha256: bb1106dbdb8b4b0b5a742916293d4d45c641d1b5e07e847993a820520cadc356

Contents?: true

Size: 471 Bytes

Versions: 4

Compression:

Stored size: 471 Bytes

Contents

module Droom
  class DashboardController < Droom::EngineController
    respond_to :html, :js
    layout :normal_unless_pjax
  
    before_filter :authenticate_user!  
    
    def index
      @panel = session[:panel] || "search"
      session[:panel] = nil
      render
    end
    
    def page
      
    end
    
  protected
  
    def normal_unless_pjax
      if request.headers['X-PJAX']
        false
      else
        Droom.layout
      end
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
droom-0.4.3 app/controllers/droom/dashboard_controller.rb
droom-0.4.2 app/controllers/droom/dashboard_controller.rb
droom-0.4.1 app/controllers/droom/dashboard_controller.rb
droom-0.2.1 app/controllers/droom/dashboard_controller.rb