Sha256: 2e7188b775a345415fa0153c011745d561f56ae2f3973ff6242af4a10d0cd40a

Contents?: true

Size: 404 Bytes

Versions: 17

Compression:

Stored size: 404 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)
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
devise-token_authenticatable-1.1.0 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-1.0.2 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-1.0.1 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-1.0.0 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.5.3 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.5.2 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.5.1 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.4.10 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.5.0 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.4.9 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.4.6 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.4.0 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.3.2 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.3.1 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.3.0 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.2.0 spec/support/rails_app/app/controllers/application_controller.rb
devise-token_authenticatable-0.2.0.beta1 spec/support/rails_app/app/controllers/application_controller.rb