Permalink
Browse files

removed unnecessary block when using fetch

  • Loading branch information...
1 parent 87b30fb commit f58ff6147311c1ce62d02a9d03f4f451281e49db @morgoth morgoth committed Apr 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/atom_feed_helper.rb
@@ -189,7 +189,7 @@ def entry(record, options = {})
@xml.updated((options[:updated] || record.updated_at).xmlschema)
end
- type = options.fetch(:type) { 'text/html' }
+ type = options.fetch(:type, 'text/html')
@xml.link(:rel => 'alternate', :type => type, :href => options[:url] || @view.polymorphic_url(record))

0 comments on commit f58ff61

Please sign in to comment.