mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +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:
@@ -20,9 +20,7 @@ if defined?(Rails)
|
|||||||
|
|
||||||
initializer "include_routes.active_model_serializer" do |app|
|
initializer "include_routes.active_model_serializer" do |app|
|
||||||
ActiveSupport.on_load(:active_model_serializers) do
|
ActiveSupport.on_load(:active_model_serializers) do
|
||||||
include AbstractController::UrlFor
|
include app.routes.url_helpers
|
||||||
extend ::AbstractController::Railties::RoutesHelpers.with(app.routes)
|
|
||||||
include app.routes.mounted_helpers
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user