Use finder to decide to show note to user
Given the note is about how to interpret ancestor clusters, use the finder which actually knows if there are any ancestor clusters to find out if the note should be shown, rather than passing the same info via a view to a helper Added note about Kaminari.paginate_array Link to followup issue too
显示
- app/controllers/clusters/clusters_controller.rb 13 个添加, 1 个删除app/controllers/clusters/clusters_controller.rb
- app/finders/cluster_ancestors_finder.rb 10 个添加, 1 个删除app/finders/cluster_ancestors_finder.rb
- app/helpers/clusters_helper.rb 0 个添加, 4 个删除app/helpers/clusters_helper.rb
- app/views/clusters/clusters/index.html.haml 1 个添加, 1 个删除app/views/clusters/clusters/index.html.haml
想要评论请 注册 或 登录