Replace deprecated to: for action: at routes

Running test suite the following appears: DEPRECATION WARNING: Defining
a route where `to` is a symbol is deprecated. Please change
`to: :json_data` to `action: :json_data`.
This commit is contained in:
Bertocq
2018-03-28 08:48:26 +02:00
parent c4049efa4a
commit 471fe52ecc

View File

@@ -18,4 +18,4 @@ scope '/participatory_budget' do
end end
end end
get 'investments/:id/json_data', to: :json_data, controller: 'budgets/investments' get 'investments/:id/json_data', action: :json_data, controller: 'budgets/investments'