Sha256: 9081af67fd0b3d673760dc087287e14c9a73f482978c540c4c1f71d43303e841

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 Bytes

Contents

require 'as_csv/csv_builder'

module AsCSV
  module ActiveModel
    module Serialization
      module CSV
        def as_csv(options={})
          attributes
        end

        def to_csv(*args)
          AsCSV::CSVBuilder.new(self, *args).to_csv
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
as_csv-3.0.1 lib/as_csv/active_model/serialization/csv.rb
as_csv-3.0.0 lib/as_csv/active_model/serialization/csv.rb