Sha256: 31fee1b76473f69df72fe23c24686819c09c058d771d04e3db83548e287bc3f7

Contents?: true

Size: 234 Bytes

Versions: 7

Compression:

Stored size: 234 Bytes

Contents

module CmAdmin
  module Models
    class Export
      class << self
        def exportable_columns(klass, action_name: :index)
          klass.available_fields[action_name].select(&:exportable)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cm-admin-4.4.8 lib/cm_admin/models/export.rb
cm-admin-4.4.6 lib/cm_admin/models/export.rb
cm-admin-4.4.1 lib/cm_admin/models/export.rb
cm-admin-4.4.0 lib/cm_admin/models/export.rb
cm-admin-4.3.0 lib/cm_admin/models/export.rb
cm-admin-4.2.1 lib/cm_admin/models/export.rb
cm-admin-4.2.0 lib/cm_admin/models/export.rb