mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
15 lines
391 B
Ruby
15 lines
391 B
Ruby
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!
|