Class: Bbs::LatestTopicsCell
- Inherits:
-
ApplicationCell
- Object
- Cell::ViewModel
- ApplicationCell
- Bbs::LatestTopicsCell
- Defined in:
- app/cells/bbs/latest_topics_cell.rb
Instance Method Summary collapse
Methods inherited from ApplicationCell
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bbs::ApplicationCell
Instance Method Details
#show ⇒ Object
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 |