Sha256: 9600f56a9b9892a88abe1605135ef5f04c4d7db396736370db4dddb4681ab268

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

class CustomPost < ActiveRecord::Base
  self.table_name = :posts

  include SpreadsheetArchitect

  def spreadsheet_columns
    [
      :name,
      ['The Content', :content],
      :created_at, 
      ['Created At 2', created_at.strftime("%Y-%m-%d")],
      [:asd, 'tadaaa']
    ]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spreadsheet_architect-2.0.0 test/rails_app/app/models/custom_post.rb