lib/active_admin/resource_controller/streaming.rb in activeadmin-2.10.1 vs lib/active_admin/resource_controller/streaming.rb in activeadmin-2.11.0

- old
+ new

@@ -29,10 +29,10 @@ self.response_body = Enumerator.new &block end end def csv_filename - "#{resource_collection_name.to_s.gsub('_', '-')}-#{Time.zone.now.to_date.to_s(:default)}.csv" + "#{resource_collection_name.to_s.gsub('_', '-')}-#{Time.zone.now.to_date.to_formatted_s(:default)}.csv" end def stream_csv headers["Content-Type"] = "text/csv; charset=utf-8" # In Rails 5 it's set to HTML?? headers["Content-Disposition"] = %{attachment; filename="#{csv_filename}"}