1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Revert "use any? to check for size"

This reverts commit c4af5f00f6.
This commit is contained in:
Vijay Dev 2011-11-28 16:29:55 +05:30
parent 89925e817c
commit 9ca58ba492

View file

@ -32,7 +32,7 @@ module ActionView
# 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|