Sha256: 4774019e6bc835bd1d1d8057b6b4e0c889e41d2f0f10c849afbbcbc9a573c482
Contents?: true
Size: 384 Bytes
Versions: 21
Compression:
Stored size: 384 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], helpers) send_file file_path, disposition: 'attachment' end end end
Version data entries
21 entries across 21 versions & 1 rubygems