Sha256: 0f29427c58138132221343cef8828687797a7ce0f498bb830d5b9ea42cbfa235

Contents?: true

Size: 1.22 KB

Versions: 54

Compression:

Stored size: 1.22 KB

Contents

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

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/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 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:3000" }

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

Version data entries

54 entries across 49 versions & 9 rubygems

Version Path
devise-2.2.8 test/rails_app/config/application.rb
devise-2.0.6 test/rails_app/config/application.rb
devise-2.1.4 test/rails_app/config/application.rb
devise-2.2.7 test/rails_app/config/application.rb
devise-2.2.6 test/rails_app/config/application.rb
devise-2.2.5 test/rails_app/config/application.rb
devise-2.2.4 test/rails_app/config/application.rb
devise_session_expirable-0.2.0 test/rails_app/config/application.rb
devise-warbler-2.2.3 test/rails_app/config/application.rb
devise_session_expirable-0.1.1 test/rails_app/config/application.rb
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.5.4/test/rails_app/config/application.rb
devise-2.2.3 test/rails_app/config/application.rb
devise-2.1.3 test/rails_app/config/application.rb
devise-2.0.5 test/rails_app/config/application.rb
devise-1.5.4 test/rails_app/config/application.rb
devise-2.2.2 test/rails_app/config/application.rb
devise-2.2.1 test/rails_app/config/application.rb
devise-2.2.0 test/rails_app/config/application.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/test/rails_app/config/application.rb
devise-2.2.0.rc test/rails_app/config/application.rb