Sha256: 491b5e10a5098202acbbab8a30b0c06c0145f820907a656479a7e572bb046536
Contents?: true
Size: 1.06 KB
Versions: 22
Compression:
Stored size: 1.06 KB
Contents
# http://www.atomenabled.org/developers/syndication/ item = @items.singularize if item == 'task' @assets = @assets.values.flatten title = t(:"#{@view}_tab") << ' ' << t(@items.to_sym) end atom_feed do |feed| feed.title title || t(@items.to_sym) feed.updated @assets.any? ? @assets.max { |a, b| a.updated_at <=> b.updated_at }.updated_at : Time.now feed.generator "Fat Free CRM v#{FatFreeCRM::VERSION::STRING}" feed.author do |author| author.name @current_user.full_name author.email @current_user.email end @assets.each do |asset| feed.entry(asset) do |entry| entry.title !asset.is_a?(User) ? asset.name : "#{asset.full_name} (#{asset.username})" entry.summary send(:"#{item}_summary", asset) if respond_to?(:"#{item}_summary") entry.author do |author| author.name !asset.is_a?(User) ? asset.try(:user).try(:full_name) : asset.full_name end entry.contributor do |contributor| contributor.name asset.assigned_to_full_name end if asset.respond_to?(:assigned_to_full_name) end end end
Version data entries
22 entries across 22 versions & 2 rubygems