mirror of https://github.com/rails/rails
Merge pull request #5707 from morgoth/remove-unnecessary-block-in-fetch
removed unnecessary block when using fetch
This commit is contained in:
commit
7ecd6a731b
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue