Sha256: cac7b0984e8bab0d3bd3343290fbe97f37d4f90cebf899ea51a1022556aa134d
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require_dependency "whodat/application_controller" module Whodat class DashboardController < ApplicationController # before_action :authenticate_user! helper_method :current_user, :user_signed_in? def index def current_user @current_user ||= Whodat::User.find_by( id: session[:user_id] ) end def user_signed_in? current_user end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whodat-1.0.0 | app/controllers/whodat/dashboard_controller.rb |