Sha256: 3d6ef56b6f9149ea226da0449015fd285916d8ba7a198e13f7ee7c0e19ddaa08

Contents?: true

Size: 1.37 KB

Versions: 8

Compression:

Stored size: 1.37 KB

Contents

require File.expand_path('../boot', __FILE__)

require "action_controller/railtie"
require "action_mailer/railtie"
require "rails/test_unit/railtie"

Bundler.require :default, DEVISE_ORM

begin
  require "#{DEVISE_ORM}/railtie"
rescue LoadError
end

require "devise"

module RailsApp
  class Application < Rails::Application
    # Add additional load paths for your own custom dirs
    config.autoload_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers mailers views).include?($1) }
    config.autoload_paths += ["#{config.root}/app/#{DEVISE_ORM}"]

    # Configure generators values. Many other options are available, be sure to check the documentation.
    # config.generators do |g|
    #   g.orm             :active_record
    #   g.template_engine :erb
    #   g.test_framework  :test_unit, fixture: true
    # end

    # Configure sensitive parameters which will be filtered from the log file.
    config.filter_parameters << :password
    # config.assets.enabled = false

    config.action_mailer.default_url_options = { host: "localhost", port: 3000 }

    if DEVISE_ORM == :active_record && (Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR >= 2)
      config.active_record.raise_in_transactional_callbacks = true
    end

    # This was used to break devise in some situations
    config.to_prepare do
      Devise::SessionsController.layout "application"
    end
  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

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