Sha256: dacc4bc88c4205fd0239d0fd5620205e7df59385b0a22e187fc3f188ce0f6448
Contents?: true
Size: 397 Bytes
Versions: 3
Compression:
Stored size: 397 Bytes
Contents
require 'active_support/concern' module Monologue module ControllerHelpers module User extend ActiveSupport::Concern included do helper_method :monologue_current_user end private def monologue_current_user @monologue_current_user ||= Monologue::User.find(session[:monologue_user_id]) if session[:monologue_user_id] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems