mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removed unnecessary block when using fetch
This commit is contained in:
parent
87b30fb2e6
commit
f58ff61473
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue