Sha256: 16565a2a890cd3e8623d22760fe2a6b264b0cc018916536222c2bec0faa8c7f9

Contents?: true

Size: 650 Bytes

Versions: 1

Compression:

Stored size: 650 Bytes

Contents

class ActiveModelSerializers::RailsApplication < Rails::Application
  if Rails::VERSION::MAJOR >= 4
    config.eager_load = false

    config.secret_key_base = 'abc123'

    config.active_support.test_order = :random

    config.logger = Logger.new(nil)

    config.action_controller.perform_caching = true
    ActionController::Base.cache_store = :memory_store
  end
end
ActiveModelSerializers::RailsApplication.initialize!

module TestHelper
  Routes = ActionDispatch::Routing::RouteSet.new
  Routes.draw do
    get ':controller(/:action(/:id))'
    get ':controller(/:action)'
  end

  ActionController::Base.send :include, Routes.url_helpers
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_model_serializers-0.10.0.rc4 test/support/rails_app.rb