Sha256: c4f7bc08050f2cb910ba7cbba46ebe24ed017d8b90165566bbae67a1b3242e2b

Contents?: true

Size: 750 Bytes

Versions: 17

Compression:

Stored size: 750 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.created_at <=> b.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

17 entries across 17 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/home/index.atom.builder
fat_free_crm-0.15.2 app/views/home/index.atom.builder
fat_free_crm-0.14.1 app/views/home/index.atom.builder
fat_free_crm-0.15.1 app/views/home/index.atom.builder
fat_free_crm-0.15.0 app/views/home/index.atom.builder
fat_free_crm-0.15.0.beta.2 app/views/home/index.atom.builder
fat_free_crm-0.15.0.beta app/views/home/index.atom.builder
fat_free_crm-0.14.0 app/views/home/index.atom.builder
reduced_fat_crm-0.15.0.beta app/views/home/index.atom.builder
reduced_fat_crm-0.14.0 app/views/home/index.atom.builder
fat_free_crm-0.13.6 app/views/home/index.atom.builder
fat_free_crm-0.13.5 app/views/home/index.atom.builder
fat_free_crm-0.13.4 app/views/home/index.atom.builder
fat_free_crm-0.13.3 app/views/home/index.atom.builder
fat_free_crm-0.13.2 app/views/home/index.atom.builder
fat_free_crm-0.13.1 app/views/home/index.atom.builder
fat_free_crm-0.13.0 app/views/home/index.atom.builder