Sha256: b43612c2c958a49cbb4b51825f245230e84b47b14122d2be17247b280b9dc876
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
module AppyantraAdmin class HomeController < ApplicationController before_filter(except: [:index, :website]) { |c| c.authenticate_admin! } before_filter(except: [:index]) { |c| c.add_breadcrumb(['Home', main_app.root_path])} def index if admin_signed_in? @page_title = 'Home' add_breadcrumb([@page_title, main_app.root_path]) current_breadcrumb 'Dashboard' @assets = AppyantraAdmin.assets @page_title = 'Home' else redirect_to main_app.new_admin_session_path end end def website @page_title = 'Website Home' render '/website/index', layout: 'application' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appyantra_admin-0.0.1 | app/controllers/appyantra_admin/home_controller.rb |