Skip to content

Commit 5ee7b4d

Browse files
committed
Fixed typo per value
1 parent 07faddc commit 5ee7b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/serializers/category_serializer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class CategorySerializer < ActiveModel::Serializer
44
has_many :posts
55
def posts
66
post_page = (instance_options.dig(:pagaination_param, :post_page).presence || 1).to_i
7-
post_per = (instance_options.dig(:pagaination_param, :post_per).presence || 0).to_i
7+
post_per = (instance_options.dig(:pagaination_param, :post_per).presence || 10).to_i
88
object.posts.published.by_date.page(post_page).per(post_per)
99
end
1010
def posts_pagination

0 commit comments

Comments
 (0)