adds without_validators filter

This commit is contained in:
Juanjo Bazán
2016-02-25 18:43:35 +01:00
parent 96e5be60a3
commit 43635f41b0
7 changed files with 35 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ class SpendingProposal < ActiveRecord::Base
validates :terms_of_service, acceptance: { allow_nil: false }, on: :create
scope :without_admin, -> { where(administrator_id: nil) }
scope :without_valuators, -> { where(valuation_assignments_count: 0) }
def description
super.try :html_safe