Class: Chive::FeedController

Inherits:
ApplicationController show all
Defined in:
app/controllers/chive/feed_controller.rb

Instance Method Summary collapse

Methods included from UserConcerns

#authenticate_chive_user, #chive_user, #user_can_chive?

Instance Method Details

#indexObject



3
4
5
6
7
8
# File 'app/controllers/chive/feed_controller.rb', line 3

def index
  @articles =  Article.latest_published.limit(Chive.per_page)
  respond_to do |format|
    format.rss { render layout: false }
  end
end