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

Version Path
cm-admin-0.6.6 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.6.5 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.6.4 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.6.3 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.6.2 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.6.1 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.6.0 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.9 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.8 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.7 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.6 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.5 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.4 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.3 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.2 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.5.0 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.4.4 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.4.3 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.4.2 app/controllers/cm_admin/exports_controller.rb
cm-admin-0.4.1 app/controllers/cm_admin/exports_controller.rb