Sha256: 78d588ac5ce93fc87dcbc068dceb22485228e6c7b8512fb2b4a79847cbaec335

Contents?: true

Size: 220 Bytes

Versions: 159

Compression:

Stored size: 220 Bytes

Contents

module Authentication
  extend ActiveSupport::Concern

  included do
    before_action :check_current_user
  end

  private
  def check_current_user
    if current_user
      Current.user = current_user
    end
  end
end

Version data entries

159 entries across 159 versions & 1 rubygems

Version Path
cm-admin-4.4.8 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.4.6 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.4.1 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.4.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.3.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.2.1 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.2.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.1.2 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.1.1 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.1.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-4.0.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.16 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.15 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.14 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.13 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.12 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.11 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.10 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.9 lib/generators/cm_admin/templates/authentication.rb
cm-admin-3.0.8 lib/generators/cm_admin/templates/authentication.rb