File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ def files
22
22
end
23
23
def comments
24
24
comment_page = ( instance_options . dig ( :pagaination_param , :comment_page ) . presence || 1 ) . to_i
25
- comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || Pagination . per ) . to_i
25
+ comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || 0 ) . to_i
26
26
object . comments . published . by_date . page ( comment_page ) . per ( comment_per )
27
27
end
28
28
def comments_pagination
29
- comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || Pagination . per ) . to_i
29
+ comment_per = ( instance_options . dig ( :pagaination_param , :comment_per ) . presence || 0 ) . to_i
30
30
Pagination . build_json ( comments ) [ :comments_pagination ] if comment_per > 0
31
31
end
32
32
end
You can’t perform that action at this time.
0 commit comments