Sha256: f7ecf8ba79c81586236bdd92b4e55503238fd270278ce77f682e3548fae34496

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

require_dependency "whodat/application_controller"

module Whodat
  class DashboardController < ApplicationController

    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.1 app/controllers/whodat/dashboard_controller.rb