Sha256: e81be6d0afcda2137ff81560c95631b6e75584065cb45d4a530aa86f4c9e0b07

Contents?: true

Size: 447 Bytes

Versions: 8

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

8 entries across 8 versions & 4 rubygems

Version Path
devise-4.3.0 test/rails_app/app/controllers/application_controller.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/devise-4.2.1/test/rails_app/app/controllers/application_controller.rb
devise-4.2.1 test/rails_app/app/controllers/application_controller.rb
devise_openid_authenticatable-1.3.0 rails/app/controllers/application_controller.rb
devise-4.2.0 test/rails_app/app/controllers/application_controller.rb
devise-4.1.1 test/rails_app/app/controllers/application_controller.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/devise-4.1.0/test/rails_app/app/controllers/application_controller.rb
devise-4.1.0 test/rails_app/app/controllers/application_controller.rb