Sha256: 28b2afdb75a46a7460e8e512a897527e3190ea786d4763477994ad02f390c204

Contents?: true

Size: 447 Bytes

Versions: 6

Compression:

Stored size: 447 Bytes

Contents

# 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

6 entries across 6 versions & 1 rubygems

Version Path
devise-4.0.3 test/rails_app/app/controllers/application_controller.rb
devise-4.0.2 test/rails_app/app/controllers/application_controller.rb
devise-4.0.1 test/rails_app/app/controllers/application_controller.rb
devise-4.0.0 test/rails_app/app/controllers/application_controller.rb
devise-4.0.0.rc2 test/rails_app/app/controllers/application_controller.rb
devise-4.0.0.rc1 test/rails_app/app/controllers/application_controller.rb