Added SEGMENTS variable to UserSegments class

This commit is contained in:
María Checa
2018-02-15 16:23:51 +01:00
committed by Bertocq
parent cb15a2e25b
commit 6c36e17ce2

View File

@@ -1,4 +1,11 @@
class UserSegments
SEGMENTS = %w(all_users
proposal_authors
investment_authors
feasible_and_undecided_investment_authors
selected_investment_authors
winner_investment_authors)
def self.all_users
User.newsletter.active
end