Sha256: 5a1d136b410f0a0b14c877d6c139fdebc890f8a842ce6d8b3080c3e8491bc9d6

Contents?: true

Size: 447 Bytes

Versions: 16

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_filter :current_user, unless: :devise_controller?
  before_filter :authenticate_user!, if: :devise_controller?
  respond_to *Mime::SET.map(&:to_sym)

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

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
devise-3.5.10 test/rails_app/app/controllers/application_controller.rb
devise-3.5.9 test/rails_app/app/controllers/application_controller.rb
devise-3.5.8 test/rails_app/app/controllers/application_controller.rb
devise-3.5.7 test/rails_app/app/controllers/application_controller.rb
devise-3.5.6 test/rails_app/app/controllers/application_controller.rb
devise-3.5.5 test/rails_app/app/controllers/application_controller.rb
devise-3.5.4 test/rails_app/app/controllers/application_controller.rb
devise-3.5.3 test/rails_app/app/controllers/application_controller.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/devise-3.5.2/test/rails_app/app/controllers/application_controller.rb
devise-3.5.2 test/rails_app/app/controllers/application_controller.rb
devise-3.5.1 test/rails_app/app/controllers/application_controller.rb
deviseOne-1.0.0 test/rails_app/app/controllers/application_controller.rb
devise-3.4.1 test/rails_app/app/controllers/application_controller.rb
devise-3.4.0 test/rails_app/app/controllers/application_controller.rb
brainsome_devise-3.3.0 test/rails_app/app/controllers/application_controller.rb
devise-3.3.0 test/rails_app/app/controllers/application_controller.rb