Commit 78e7bdccca502421b669632b5598255931aeed49

Authored by Victor Costa
1 parent 1f99b1b7

proposals_discussion: fix ambiguous problem on article

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/article.rb
... ... @@ -230,7 +230,7 @@ class Article < ActiveRecord::Base
230 230 }
231 231  
232 232 scope :public,
233   - :conditions => [ "advertise = ? AND published = ? AND profiles.visible = ? AND profiles.public_profile = ?", true, true, true, true ], :joins => [:profile]
  233 + :conditions => [ "articles.advertise = ? AND articles.published = ? AND profiles.visible = ? AND profiles.public_profile = ?", true, true, true, true ], :joins => [:profile]
234 234  
235 235 scope :more_recent,
236 236 :conditions => [ "advertise = ? AND published = ? AND profiles.visible = ? AND profiles.public_profile = ? AND
... ...