Sha256: ee6b4cfb698fdda0fe7728d8e67e4ed3b699729907ab0f69ab3da2d6fcfae54a

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.

class ApplicationController < ActionController::Base
  protect_from_forgery
  before_action :current_user, unless: :devise_controller?
  before_action :authenticate_user!, if: :devise_controller?
  respond_to(*Mime::SET.map(&:to_sym))

  devise_group :commenter, contains: [:user, :admin]
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise-4.5.0 test/rails_app/app/controllers/application_controller.rb
devise-4.4.3 test/rails_app/app/controllers/application_controller.rb
devise-4.4.2 test/rails_app/app/controllers/application_controller.rb
devise-4.4.1 test/rails_app/app/controllers/application_controller.rb
devise-4.4.0 test/rails_app/app/controllers/application_controller.rb