Sha256: c1d264ccf8dba29b8f59616f1194c62ebc2f349c31772d4e8332ec9de580aac7

Contents?: true

Size: 949 Bytes

Versions: 7

Compression:

Stored size: 949 Bytes

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) if defined?(Bundler)

begin
  require "#{DEVISE_ORM}" if DEVISE_ORM == :mongoid
  require "#{DEVISE_ORM}/railtie" unless DEVISE_ORM == :mongoid && Mongoid::VERSION >= '5.0.0'
rescue LoadError
end
PARENT_MODEL_CLASS = DEVISE_ORM == :active_record ? ActiveRecord::Base : Object
Mongoid.load!(File.expand_path('../../mongoid.yml', __FILE__)) if DEVISE_ORM == :mongoid && Mongoid::VERSION < '3.0.0'

require "devise"
require "devise_invitable"

module RailsApp
  class Application < Rails::Application
    config.filter_parameters << :password
    config.action_mailer.default_url_options = { :host => "localhost:3000" }
    if DEVISE_ORM == :active_record && Rails.version.start_with?('5')
      config.active_record.maintain_test_schema = false
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_invitable-1.7.4 test/rails_app/config/application.rb
devise_invitable-1.7.3 test/rails_app/config/application.rb
devise_invitable-1.7.2 test/rails_app/config/application.rb
devise_invitable-1.7.1 test/rails_app/config/application.rb
devise_invitable-1.7.0 test/rails_app/config/application.rb
devise_invitable-1.6.1 test/rails_app/config/application.rb
devise_invitable-1.6.0 test/rails_app/config/application.rb