mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 14:58:05 -05:00
32 lines
978 B
Ruby
32 lines
978 B
Ruby
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
|
|
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 += [ "#{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
|