Use Relationable concern on Debates, Proposals and Budget Investments

This commit is contained in:
Bertocq
2017-11-27 18:37:40 +01:00
parent 8f3769aa7d
commit 13f5fa55ab
3 changed files with 3 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ class Budget
acts_as_votable
acts_as_paranoid column: :hidden_at
include ActsAsParanoidAliases
include Relationable
belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id'
belongs_to :heading

View File

@@ -9,6 +9,7 @@ class Debate < ActiveRecord::Base
include Filterable
include HasPublicAuthor
include Graphqlable
include Relationable
acts_as_votable
acts_as_paranoid column: :hidden_at

View File

@@ -17,6 +17,7 @@ class Proposal < ActiveRecord::Base
max_file_size: 3.megabytes,
accepted_content_types: [ "application/pdf" ]
include EmbedVideosHelper
include Relationable
acts_as_votable
acts_as_paranoid column: :hidden_at