Class: Bbs::LatestTopicsCell

Inherits:
ApplicationCell show all
Defined in:
app/cells/bbs/latest_topics_cell.rb

Instance Method Summary collapse

Methods inherited from ApplicationCell

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bbs::ApplicationCell

Instance Method Details

#showObject



3
4
5
6
7
# File 'app/cells/bbs/latest_topics_cell.rb', line 3

def show
  @topics = Bbs::Topic.order(created_at: :desc).limit(Bbs.config.latest_topics_count)

  render
end