Sha256: d6a64f4ae7f1e3f56b27eac3e27a7c5375d28fada818b851359a8b9ab1bb7f26

Contents?: true

Size: 705 Bytes

Versions: 9

Compression:

Stored size: 705 Bytes

Contents

# http://www.atomenabled.org/developers/syndication/
items  = controller.controller_name
item   = items.singularize
assets = controller.instance_variable_get("@#{items}")

atom_feed do |feed|
  feed.title t(:activities)
  feed.updated @activities.max { |a, b| a.updated_at <=> b.updated_at }.try(:updated_at)
  feed.generator  "Fat Free CRM v#{FatFreeCRM::Version}"
  feed.author do |author|
    author.name  @current_user.full_name
    author.email @current_user.email
  end

  @activities.each do |activity|
    feed.entry(activity, :url => '') do |entry|
      entry.title activity_title(activity)

      entry.author do |author|
        author.name activity.user.full_name
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/views/home/index.atom.builder
fat_free_crm-0.12.2 app/views/home/index.atom.builder
fat_free_crm-0.12.1 app/views/home/index.atom.builder
fat_free_crm-0.12.0 app/views/home/index.atom.builder
fat_free_crm-0.11.4 app/views/home/index.atom.builder
fat_free_crm-0.11.3 app/views/home/index.atom.builder
fat_free_crm-0.11.2 app/views/home/index.atom.builder
fat_free_crm-0.11.1 app/views/home/index.atom.builder
fat_free_crm-0.11.0 app/views/home/index.atom.builder