adds code to spending proposals

This commit is contained in:
rgarcia
2016-03-28 12:14:33 +02:00
parent 2fe1e0d624
commit 50b1571126
2 changed files with 17 additions and 0 deletions

View File

@@ -76,4 +76,8 @@ class SpendingProposal < ActiveRecord::Base
not feasible?
end
def code
"#{id}" + (administrator.present? ? "-#{administrator.id}" : "")
end
end