mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
use any? to check for size
This commit is contained in:
parent
a607a9d978
commit
c4af5f00f6
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ module ActionView
|
|||
# app/views/posts/index.atom.builder:
|
||||
# atom_feed do |feed|
|
||||
# feed.title("My great blog!")
|
||||
# feed.updated(@posts[0].created_at) if @posts.length > 0
|
||||
# feed.updated(@posts.first.created_at) if @posts.any?
|
||||
#
|
||||
# @posts.each do |post|
|
||||
# feed.entry(post) do |entry|
|
||||
|
|
Loading…
Reference in a new issue