Sha256: ff0911c768b461e7a2959430036902de064ee30a6126dee089726f9daa9b5e85

Contents?: true

Size: 164 Bytes

Versions: 2

Compression:

Stored size: 164 Bytes

Contents

if defined? ActionController::Renderers
  ActionController::Renderers.add :csv do |obj, options|
    obj.respond_to?(:to_csv) ? obj.to_csv(options) : obj
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
as_csv-1.0.2 lib/as_csv/action_renderer.rb
as_csv-1.0.0 lib/as_csv/action_renderer.rb