diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-26 18:52:10 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-26 18:52:10 +0530 |
commit | c4af5f00f602b9e1c3166872902265836daf321b (patch) | |
tree | 87c7b4333b709aa8a05d1918a91d21200fb0f398 /actionpack/lib | |
parent | a607a9d978c4a84935fa23556de1dde5aea274d8 (diff) | |
download | rails-c4af5f00f602b9e1c3166872902265836daf321b.tar.gz rails-c4af5f00f602b9e1c3166872902265836daf321b.tar.bz2 rails-c4af5f00f602b9e1c3166872902265836daf321b.zip |
use any? to check for size
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/atom_feed_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/atom_feed_helper.rb b/actionpack/lib/action_view/helpers/atom_feed_helper.rb index 73824dc1f8..90589d2238 100644 --- a/actionpack/lib/action_view/helpers/atom_feed_helper.rb +++ b/actionpack/lib/action_view/helpers/atom_feed_helper.rb @@ -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| |