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-1.0.3 lib/generators/cm_admin/templates/authentication.rb
cm-admin-1.0.2 lib/generators/cm_admin/templates/authentication.rb
cm-admin-1.0.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.9.1 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.9.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.9 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.8 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.7 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.6 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.5 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.4 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.3 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.2 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.1 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.8.0 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.7.8 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.7.7 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.7.6 lib/generators/cm_admin/templates/authentication.rb
cm-admin-0.7.5 lib/generators/cm_admin/templates/authentication.rb