Ticket #10619: atom_feed_helper_patch.diff
| File atom_feed_helper_patch.diff, 1.4 kB (added by matt, 7 months ago) |
|---|
-
atom_feed_helper/lib/atom_feed_helper.rb
old new 27 27 @xml, @view = xml, view 28 28 end 29 29 30 def entry(record )30 def entry(record, options = {}) 31 31 @xml.entry do 32 32 @xml.id("tag:#{@view.request.host_with_port},2007:#{record.class}#{record.id}") 33 33 @xml.published(record.created_at.xmlschema) if record.respond_to?(:created_at) … … 35 35 36 36 yield @xml 37 37 38 @xml.link(:rel => 'alternate', :type => 'text/html', :href => @view.polymorphic_url(record)) 38 if options[:entry_url] || @view.respond_to?(:polymorphic_url) 39 @xml.link(:rel => 'alternate', :type => 'text/html', :href => options[:entry_url] || @view.polymorphic_url(record)) 40 end 39 41 end 40 42 end 41 43 -
atom_feed_helper/CHANGELOG
old new