crafterm-comma 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/comma.rb +1 -1
- 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
|
|