Permalink
Browse files

More idiomatic.

  • Loading branch information...
1 parent 9e86bb0 commit a0a66fb28df9f55d6778ce6a08ee0dc9b0ba1cbd @wfarr wfarr committed Mar 11, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/moonshine/manifest/rails/templates/passenger.vhost.erb
@@ -9,7 +9,7 @@
PassengerAnalytics on
UnionStationSupport on
UnionStationKey <%= configuration[:union_station][:key] %>
- <% (configuration[:union_station][:filters] || []).each do |us_filter| %>
+ <% configuration[:union_station][:filters].to_a.each do |us_filter| %>
UnionStationFilter "<%= us_filter %>"
<% end %>
<% end %>
@@ -202,8 +202,9 @@
PassengerAnalytics on
UnionStationSupport on
UnionStationKey <%= configuration[:union_station][:key] %>
- <% (configuration[:union_station][:filters] || []).each do |us_filter| %>
+ <% configuration[:union_station][:filters].to_a.each do |us_filter| %>
UnionStationFilter "<%= us_filter %>"
+ <% end %>
<% end %>
<% end %>

0 comments on commit a0a66fb

Please sign in to comment.