crafterm-comma 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/comma.rb +1 -1
  2. metadata +1 -1
data/lib/comma.rb CHANGED
@@ -42,7 +42,7 @@ if defined?(ActionController)
42
42
  module InstanceMethods
43
43
  def render_with_csv(options = nil, extra_options = {}, &block)
44
44
  return render_without_csv(options, extra_options, &block) unless options and options[:csv]
45
- send_data Array(options[:csv]).to_comma
45
+ send_data Array(options[:csv]).to_comma(options[:style] ||= :default)
46
46
  end
47
47
  end
48
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crafterm-comma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Crafter