Skip to content
This repository
Browse code

Merge pull request #5707 from morgoth/remove-unnecessary-block-in-fetch

removed unnecessary block when using fetch
  • Loading branch information...
commit 7ecd6a731bd60665bc6de94095137f0b2c4ada2a 2 parents 91cb99e + f58ff61
Xavier Noria authored
2  actionpack/lib/action_view/helpers/atom_feed_helper.rb
@@ -189,7 +189,7 @@ def entry(record, options = {})
189 189
               @xml.updated((options[:updated] || record.updated_at).xmlschema)
190 190
             end
191 191
 
192  
-            type = options.fetch(:type) { 'text/html' }
  192
+            type = options.fetch(:type, 'text/html')
193 193
 
194 194
             @xml.link(:rel => 'alternate', :type => type, :href => options[:url] || @view.polymorphic_url(record))
195 195
 

0 notes on commit 7ecd6a7

Please sign in to comment.
Something went wrong with that request. Please try again.