Sha256: 189b93abfaa83783d13492391c4072a9d53b550c8cd9edb2f26d8c186bb76d83

Contents?: true

Size: 723 Bytes

Versions: 5

Compression:

Stored size: 723 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_by(&:created_at).try(:created_at)
  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

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

      entry.author do |author|
        author.name activity.user.try(:full_name) || I18n.t('version.anonymous')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.16.4 app/views/home/index.atom.builder
fat_free_crm-0.16.3 app/views/home/index.atom.builder
fat_free_crm-0.16.2 app/views/home/index.atom.builder
fat_free_crm-0.16.1 app/views/home/index.atom.builder
fat_free_crm-0.16.0 app/views/home/index.atom.builder