mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Provide Rails url_helpers via SerializationContext
This commit is contained in:
@@ -10,6 +10,8 @@ class ActiveModelSerializers::RailsApplication < Rails::Application
|
||||
|
||||
config.action_controller.perform_caching = true
|
||||
ActionController::Base.cache_store = :memory_store
|
||||
|
||||
Rails.application.routes.default_url_options = { host: 'example.com' }
|
||||
end
|
||||
end
|
||||
ActiveModelSerializers::RailsApplication.initialize!
|
||||
|
||||
Reference in New Issue
Block a user