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

Version Path
cmor_user_area-0.0.60.pre lib/cmor/user_area.rb
cmor_user_area-0.0.59.pre lib/cmor/user_area.rb
cmor_user_area-0.0.58.pre lib/cmor/user_area.rb
cmor_user_area-0.0.57.pre lib/cmor/user_area.rb
cmor_user_area-0.0.56.pre lib/cmor/user_area.rb
cmor_user_area-0.0.55.pre lib/cmor/user_area.rb
cmor_user_area-0.0.54.pre lib/cmor/user_area.rb
cmor_user_area-0.0.53.pre lib/cmor/user_area.rb
cmor_user_area-0.0.52.pre lib/cmor/user_area.rb
cmor_user_area-0.0.51.pre lib/cmor/user_area.rb
cmor_user_area-0.0.50.pre lib/cmor/user_area.rb
cmor_user_area-0.0.49.pre lib/cmor/user_area.rb
cmor_user_area-0.0.48.pre lib/cmor/user_area.rb
cmor_user_area-0.0.45.pre lib/cmor/user_area.rb
cmor_user_area-0.0.44.pre lib/cmor/user_area.rb
cmor_user_area-0.0.43.pre lib/cmor/user_area.rb
cmor_user_area-0.0.42.pre lib/cmor/user_area.rb
cmor_user_area-0.0.41.pre lib/cmor/user_area.rb
cmor_user_area-0.0.40.pre lib/cmor/user_area.rb
cmor_user_area-0.0.39.pre lib/cmor/user_area.rb