Skip to content

Commit f58ff61

Browse files
committed
removed unnecessary block when using fetch
1 parent 87b30fb commit f58ff61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_view/helpers/atom_feed_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def entry(record, options = {})
189189
@xml.updated((options[:updated] || record.updated_at).xmlschema)
190190
end
191191

192-
type = options.fetch(:type) { 'text/html' }
192+
type = options.fetch(:type, 'text/html')
193193

194194
@xml.link(:rel => 'alternate', :type => type, :href => options[:url] || @view.polymorphic_url(record))
195195

0 commit comments

Comments
 (0)