Sha256: 92f3e378cb6f07c7e6c37becb7d53ac7878562a7805e213c3b27626847631dd2
Contents?: true
Size: 452 Bytes
Versions: 183
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true wb = xlsx_package.workbook wb.add_worksheet(name: '<%= human_name %>') do |sheet| sheet.add_row [ <%= attributes.map {|attribute| "@clase_modelo.human_attribute_name(:#{ attribute.name })" }.join(",\n ") %> ] @<%= plural_name %>.decorate.each do |<%= singular_name %>| sheet.add_row [ <%= attributes.map {|attribute| "#{ singular_name }.#{ attribute.name }" }.join(",\n ") %> ] end end
Version data entries
183 entries across 183 versions & 2 rubygems