Sha256: c603c72599fac3c4158ec432e350230eae84f042dd943535be4ff8fde0b6c71f

Contents?: true

Size: 391 Bytes

Versions: 9

Compression:

Stored size: 391 Bytes

Contents

class TestApp < Rails::Application
  if Rails.version.to_s.first >= '4'
    config.eager_load = false
    config.secret_key_base = 'abc123'
  end
  config.after_initialize do
    Rails.application.routes.default_url_options = { host: 'http://example.com' }
  end

  # Set up a logger to avoid creating a log directory on every run.
  config.logger = Logger.new(nil)
end

TestApp.initialize!

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_model_serializers-0.9.11 test/test_app.rb
active_model_serializers-0.9.9 test/test_app.rb
active_model_serializers-0.9.8 test/test_app.rb
active_model_serializers-0.9.7 test/test_app.rb
active_model_serializers-0.9.6 test/test_app.rb
active_model_serializers-0.9.5 test/test_app.rb
active_model_serializers-0.9.4 test/test_app.rb
active_model_serializers-0.9.3 test/test_app.rb
active_model_serializers-0.9.1 test/test_app.rb