Renamed User::public_activity scope

This commit is contained in:
Alberto Miedes Garcés
2016-12-26 18:42:12 +01:00
parent 5daf59e813
commit 2311cd4b1d
3 changed files with 3 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class Proposal < ActiveRecord::Base
RETIRE_OPTIONS = %w(duplicated started unfeasible done other)
belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id'
belongs_to :public_author, -> { public_activity }, class_name: 'User', foreign_key: 'author_id'
belongs_to :public_author, -> { with_public_activity }, class_name: 'User', foreign_key: 'author_id'
belongs_to :geozone
has_many :comments, as: :commentable
has_many :proposal_notifications