Refactor post_approvers_only to approver_only.

Don't duplicate code with post_approvers_only; use the approver_only?
method dynamically defined in `User::Roles.each do ... end`.
This commit is contained in:
evazion
2016-10-14 05:04:40 +00:00
parent d84184b5f1
commit bd6ebceda3
6 changed files with 8 additions and 13 deletions

View File

@@ -2,7 +2,7 @@ module Moderator
module Post
class QueuesController < ApplicationController
respond_to :html, :json
before_filter :post_approvers_only
before_filter :approver_only
def show
cookies.permanent[:moderated] = Time.now.to_i