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

removed unnecessary block when using fetch
This commit is contained in:
Xavier Noria 2012-04-05 08:55:19 -07:00
commit 7ecd6a731b
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ module ActionView
@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))