mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Number of posts per page is now configurable through .env
This commit is contained in:
@@ -6,7 +6,7 @@ class Post < ApplicationRecord
|
||||
|
||||
validates :title, presence: true, length: { in: 4..64 }
|
||||
|
||||
paginates_per 15
|
||||
paginates_per Rails.application.posts_per_page
|
||||
|
||||
class << self
|
||||
def find_with_post_status_in(post_statuses)
|
||||
|
||||
Reference in New Issue
Block a user