Sha256: b7c5210fe5f8238561327534720ce4cea4a48f4090c64c29d029cc198682e409

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

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

DEVISE_ORM = :active_record unless defined? DEVISE_ORM

require "active_record/railtie" if DEVISE_ORM == :active_record
require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "rails/test_unit/railtie"

Bundler.require :default, DEVISE_ORM
require "devise"

module RailsApp
  class Application < Rails::Application
    config.root = File.expand_path("../..", __FILE__)

    # Add additional load paths for your own custom dirs
    config.load_paths.reject!{ |p| p =~ /\/app\/(\w+)$/ && !%w(controllers helpers views).include?($1) }
    config.load_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
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-1.1.pre4 test/rails_app/config/application.rb
devise-1.1.pre3 test/rails_app/config/application.rb
devise-1.1.pre2 test/rails_app/config/application.rb
devise-1.1.pre test/rails_app/config/application.rb