Sha256: 4f5f929e52e14c8f272bcaa9325c50cd312a37c7493792b2d4d686228f680dde
Contents?: true
Size: 605 Bytes
Versions: 57
Compression:
Stored size: 605 Bytes
Contents
require 'cmor/user_area/configuration' require 'cmor/user_area/engine' module Cmor module UserArea extend Configuration def self.table_name_prefix 'cmor_user_area_' end module CurrentUserConcern extend ActiveSupport::Concern class_methods do def current_user_id RequestLocals.fetch(:current_user_id) { nil } end def current_user RequestLocals.fetch(:current_user) { nil } end end end include CurrentUserConcern end end Cmor.configure { |c| c.register_configuration(:user_area, Cmor::UserArea) }
Version data entries
57 entries across 57 versions & 1 rubygems