Sha256: be129f313745951a23e55035364a6a83ea1b2e107d502b47f5dc9abc2b8c05a5
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 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[:columns]) send_file file_path, disposition: 'attachment' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cm-admin-0.3.0 | app/controllers/cm_admin/exports_controller.rb |