Adds 3 orders for comments: most_voted, newest, oldest

This commit is contained in:
kikito
2015-11-02 14:01:29 +01:00
parent 8dd60b47f6
commit 73c306a673
7 changed files with 46 additions and 19 deletions

View File

@@ -7,7 +7,7 @@ class ProposalsController < ApplicationController
before_action :authenticate_user!, except: [:index, :show]
has_orders %w{hot_score confidence_score created_at most_commented random}, only: :index
has_orders %w{confidence_score created_at}, only: :show
has_orders %w{most_voted newest oldest}, only: :show
load_and_authorize_resource
respond_to :html, :js