Sha256: 351182bdee43804b784432486d8a3011340d2052e9ae40d1b31828e2bfc96816
Contents?: true
Size: 374 Bytes
Versions: 153
Compression:
Stored size: 374 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
153 entries across 153 versions & 1 rubygems