Commit a42e634de9aceaef86f0555a5837a172d41830f7

Authored by Hugo Melo
1 parent e5dea1dd

Fix article_follower badge pontuation

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
lib/ext/entities.rb
... ... @@ -81,9 +81,10 @@ module Merit
81 81 ],
82 82 observer_conferencia: [
83 83 {
84   - action: 'article_follower#create',
  84 + action: 'articlefollower#create',
85 85 default_threshold: 5,
86 86 to: :person,
  87 + model: 'ArticleFollower',
87 88 value: lambda { |article, person| person.present? ? person.article_followers.where(article_id: Article.conference_articles).count : 0 }
88 89 }
89 90 ],
... ... @@ -131,9 +132,10 @@ module Merit
131 132 ],
132 133 articulator_conferencia: [
133 134 {
134   - action: 'article_follower#create',
  135 + action: 'articlefollower#create',
135 136 default_threshold: 5,
136 137 to: :person,
  138 + model: 'ArticleFollower',
137 139 value: lambda { |article, person| person.present? ? person.article_followers.where(article_id: Article.conference_articles).count : 0 }
138 140 },
139 141 {
... ...