1
0
Fork 0
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:
Wojciech Wnętrzak 2012-04-02 23:43:47 +02:00
parent 87b30fb2e6
commit f58ff61473

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))