mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Revert "First part of a fix for #208."
This reverts commit 145b6d499d.
This fix introduced an incompatibility with Rails 3.0.
We'll have to fix it in a different way for older Rails.
This commit is contained in:
parent
731528e1f6
commit
e81406a248
@ -20,9 +20,7 @@ if defined?(Rails)
|
||||
|
||||
initializer "include_routes.active_model_serializer" do |app|
|
||||
ActiveSupport.on_load(:active_model_serializers) do
|
||||
include AbstractController::UrlFor
|
||||
extend ::AbstractController::Railties::RoutesHelpers.with(app.routes)
|
||||
include app.routes.mounted_helpers
|
||||
include app.routes.url_helpers
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user