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

Version Path
cm-admin-1.5.33 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.32 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.31 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.30 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.29 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.28 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.10 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.27 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.26 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.25 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.23 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.22 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.21 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.20 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.11 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.9 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.8 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.7 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.6 app/controllers/cm_admin/exports_controller.rb
cm-admin-1.5.1 app/controllers/cm_admin/exports_controller.rb