sends an email for unfeasible spending proposals

This commit is contained in:
rgarcia
2016-03-09 16:47:10 +01:00
parent 1bbc12dc52
commit 9aaeb23e7f
8 changed files with 103 additions and 0 deletions

View File

@@ -68,4 +68,12 @@ class SpendingProposal < ActiveRecord::Base
end
end
def marked_as_unfeasible?
previous_changes.has_key?("feasible") && unfeasible?
end
def unfeasible?
not feasible?
end
end