FIX: exporting admin dashboard reports were broken

http://eileencodes.com/posts/actioncontroller-parameters-now-returns-an-object-instead-of-a-hash/
This commit is contained in:
Arpit Jalan 2017-10-02 19:28:41 +05:30
parent 8140e54675
commit 469c6776c6
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class ExportCsvController < ApplicationController
def export_params def export_params
@_export_params ||= begin @_export_params ||= begin
params.require(:entity) params.require(:entity)
params.permit(:entity, args: [:name, :start_date, :end_date, :category_id, :group_id, :trust_level]) params.permit(:entity, args: [:name, :start_date, :end_date, :category_id, :group_id, :trust_level]).to_h
end end
end end
end end