We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果没有帖子的情况下打开 localhost:10000/topics 会 500服务器内部错误。
undefined method `current_page' for []:
因为在cached_pagination 方法中返回了 [].
return Rabel::Model::EMPTY_DATASET unless ts.present?
改为
return Kaminari.paginate_array(Rabel::Model::EMPTY_DATASET).page(0) unless ts.present?
则不报错。
The text was updated successfully, but these errors were encountered:
多谢反馈。
Sorry, something went wrong.
paginate empty dataset for active cache
ed0c706
fix #37
已经修正。
修复安全漏洞 #37
507c0dc
No branches or pull requests
如果没有帖子的情况下打开 localhost:10000/topics 会 500服务器内部错误。
因为在cached_pagination 方法中返回了 [].
改为
则不报错。
The text was updated successfully, but these errors were encountered: