Skip to content

Commit

Permalink
Fix Atom builder with no activities
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Tillman committed Dec 10, 2011
1 parent c2b608c commit d30656a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/home/index.atom.builder
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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 }.updated_at
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
Expand Down

0 comments on commit d30656a

Please sign in to comment.