Changeset 6873
- Timestamp:
- 05/27/07 22:45:30 (1 year ago)
- Files:
-
- plugins/atom_feed_helper/lib/atom_feed_helper.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/atom_feed_helper/lib/atom_feed_helper.rb
r6835 r6873 31 31 @xml.entry do 32 32 @xml.id("tag:#{@view.request.host_with_port},#{record.created_at.xmlschema}:#{record.class}#{record.id}") 33 @xml.published(record.created_at.xmlschema) if record.respond_to?(:created_at) 34 @xml.updated(record.updated_at.xmlschema) if record.respond_to?(:updated_at) 35 @xml.link(:rel => 'alternate', :type => 'text/html', :href => @view.polymorphic_url(record)) 33 @xml.published(record.created_at.xmlschema) 34 @xml.updated(record.updated_at.xmlschema) if record.respond_to?(:updated_at) 36 35 37 36 yield @xml 37 38 @xml.link(:rel => 'alternate', :type => 'text/html', :href => @view.polymorphic_url(record)) 38 39 end 39 40 end 40 41 41 42 private 42 def method_missing(method, *arguments )43 @xml.__send__(method, *arguments )43 def method_missing(method, *arguments, &block) 44 @xml.__send__(method, *arguments, &block) 44 45 end 45 46 end