Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

try doesn't work the way you'd think it does

  • Loading branch information...
commit d05fefee7a97b9815d956ac4c1de86ff95675da7 1 parent 719e201
@jnicklas authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/bistro_car/helpers.rb
View
6 lib/bistro_car/helpers.rb
@@ -5,10 +5,12 @@ def coffee_script_bundle(*bundles)
options = bundles.extract_options!
options[:mode] ||= BistroCar.mode
- [:default, *bundles].map do |name|
+ bundles = [:default, *bundles].map do |name|
bundle = Bundle.new(name)
render_cs_bundle(bundle, options[:mode])
- end.join.try(:html_safe)
+ end.join
+ bundles = bundles.html_safe if bundles.respond_to?(:html_safe)
+ bundles
end
def coffee_script(&block)
Please sign in to comment.
Something went wrong with that request. Please try again.