Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7200

Show
Ignore:
Timestamp:
07/20/07 02:03:13 (1 year ago)
Author:
bitsweat
Message:

Skip published unless record responds to :created_at

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/atom_feed_helper/lib/atom_feed_helper.rb

    r6907 r7200  
    3131        @xml.entry do  
    3232          @xml.id("tag:#{@view.request.host_with_port},2007:#{record.class}#{record.id}") 
    33           @xml.published(record.created_at.xmlschema) 
     33          @xml.published(record.created_at.xmlschema) if record.respond_to?(:created_at) 
    3434          @xml.updated(record.updated_at.xmlschema) if record.respond_to?(:updated_at) 
    3535