users can now delete their own spending proposals

via the 'my activity' page
This commit is contained in:
Juanjo Bazán
2016-03-14 12:53:00 +01:00
parent 142c981cdf
commit c09e6f95d7
10 changed files with 64 additions and 7 deletions

View File

@@ -20,6 +20,7 @@ class User < ActiveRecord::Base
has_many :debates, -> { with_hidden }, foreign_key: :author_id
has_many :proposals, -> { with_hidden }, foreign_key: :author_id
has_many :comments, -> { with_hidden }
has_many :spending_proposals, foreign_key: :author_id
has_many :failed_census_calls
has_many :notifications
belongs_to :geozone