Sha256: 3ddc3ce5dc78444939f59ffb0a565776e7454fef4b9e67ba15b87288a0d0ae7d
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
require 'csv' require 'active_model' require 'active_model/exporter' require 'active_model/array_exporter' require 'active_model/exporter/version' if defined?(ActionController) require 'action_controller/exportation' ActionController::Renderers.add :csv do |csv, options| self.content_type ||= Mime::CSV csv.respond_to?(:to_csv) ? csv.to_csv : csv end ActiveSupport.on_load(:action_controller) do include ::ActionController::Exportation end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_model_exporters-0.0.3 | lib/active_model_exporters.rb |
active_model_exporters-0.0.2 | lib/active_model_exporters.rb |
active_model_exporters-0.0.1 | lib/active_model_exporters.rb |