Sha256: ad1680a9119389d5e59264ea950e2768c5d6412dc711be12879693284d4cb1d4

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

module Whodat
  module ApplicationHelper
     
    def current_user 
      @current_user ||= Whodat::User.find_by( id: session[:user_id] )
    end

    def user_signed_in?
      current_user
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whodat-1.0.1 app/helpers/whodat/application_helper.rb
whodat-1.0.0 app/helpers/whodat/application_helper.rb