Browse files

Revert "use any? to check for size"

This reverts commit c4af5f0.
  • Loading branch information...
1 parent 89925e8 commit 9ca58ba492fdd1729aa03ca8ec89be941a0f6d4e @vijaydev vijaydev committed Nov 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/atom_feed_helper.rb
View
2 actionpack/lib/action_view/helpers/atom_feed_helper.rb
@@ -32,7 +32,7 @@ module AtomFeedHelper
# app/views/posts/index.atom.builder:
# atom_feed do |feed|
# feed.title("My great blog!")
- # feed.updated(@posts.first.created_at) if @posts.any?
+ # feed.updated(@posts[0].created_at) if @posts.length > 0
#
# @posts.each do |post|
# feed.entry(post) do |entry|

0 comments on commit 9ca58ba

Please sign in to comment.