Sha256: bd384aa7b1de2729850cb7bf2192ef84f2f42f2e0fffa296d1feb0946ee82c1d
Contents?: true
Size: 571 Bytes
Versions: 18
Compression:
Stored size: 571 Bytes
Contents
module Spina class ApplicationController < ActionController::Base include ApplicationHelper private def current_ability @current_ability ||= Ability.new(current_user) end def current_theme @current_theme = ::Spina.themes.first end helper_method :current_theme def current_user @current_user ||= User.where(id: session[:user_id]).first if session[:user_id] end helper_method :current_user def current_account @current_account ||= Account.first end helper_method :current_account end end
Version data entries
18 entries across 18 versions & 1 rubygems