app/views/admin_data/feed/index.rss.builder in admin_data-1.0.14 vs app/views/admin_data/feed/index.rss.builder in admin_data-1.0.15
- old
+ new
@@ -13,10 +13,11 @@
desc = AdminData::Util.label_values_pair_for(record, self).inject([]) do |sum, a|
sum << "<p>#{a[0]}: #{a[1]}</p>"
end.join
xml.description(desc)
- xml.pubDate(record.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
+ d = record.respond_to?(:created_at) ? record.created_at : Time.now
+ xml.pubDate(d.strftime("%a, %d %b %Y %H:%M:%S %z"))
xml.link(admin_data_on_k_path(:id => record, :klass => @klass.name))
xml.guid(admin_data_on_k_path(:id => record, :klass => @klass.name))
end
end
}