diff options
Diffstat (limited to 'app/controllers/news_controller.rb')
-rw-r--r-- | app/controllers/news_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index ffe662921..50c0489f4 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -46,7 +46,7 @@ class NewsController < ApplicationController order("#{News.table_name}.created_on DESC"). limit(@limit). offset(@offset). - all + to_a respond_to do |format| format.html { @news = News.new # for adding news inline |