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:
parent
8140e54675
commit
469c6776c6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue