lib/comma.rb in crafterm-comma-0.1.5 vs lib/comma.rb in crafterm-comma-0.1.6
- old
+ new
@@ -40,10 +40,10 @@
end
module InstanceMethods
def render_with_csv(options = nil, extra_options = {}, &block)
return render_without_csv(options, extra_options, &block) unless options and options[:csv]
- send_data Array(options[:csv]).to_comma
+ send_data Array(options[:csv]).to_comma(options[:style] ||= :default)
end
end
end
\ No newline at end of file