Sha256: 202c3bb66e9e2cbffdd455469c4a38c9451b2d3db31ac8e34334a5adcf7b723c
Contents?: true
Size: 372 Bytes
Versions: 2
Compression:
Stored size: 372 Bytes
Contents
require 'slim' require 'cm_admin/version' require 'cm_admin/engine' require 'cm_admin/model' require 'cm_admin/view_helpers' module CmAdmin class ExportsController < ApplicationController def export file_path = CmAdmin::Models::Export.generate_excel(params[:class_name], params, helpers) send_file file_path, disposition: 'attachment' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cm-admin-3.0.15 | app/controllers/cm_admin/exports_controller.rb |
cm-admin-3.0.14 | app/controllers/cm_admin/exports_controller.rb |