Class Participation
In: app/models/participation.rb
Parent: Object

Methods

new  

Attributes

article  [R] 
cvi_cit_proposals  [R] 
cvi_gov_proposals  [R] 
poll  [R] 
proposals  [R] 

Public Class methods

[Source]

    # File app/models/participation.rb, line 8
 8:   def initialize    
 9:     # Proposals
10:     @cvi_gov_proposals = Cvi.gov_proposals
11:     @cvi_cit_proposals = Cvi.cit_proposals
12:     @proposals = Proposal.from_citizens.approved.published.featured.find :all,
13:                     :order => "published_at DESC", 
14:                     :limit => "2"
15:     # /Proposals
16:     
17:     # Escucha
18:     @article = Article.published.translated.find :first, :order => 'published_at DESC'
19:     # /Escucha
20:     
21:     # Encuesta
22:     @poll = Poll.current
23:     # /Encuesta
24:     
25:   end

[Validate]