app/models/rostra/question.rb in rostra-0.0.7 vs app/models/rostra/question.rb in rostra-0.0.8

- old
+ new

@@ -13,12 +13,13 @@ validates :tag_list, :presence => true # Finds questions asked within the last 15 days ordered by non-unique page views. # def self.trending(limit = 5) - Question - .where(created_at: (15.days.ago)..(Time.now)).limit(limit) + Question.where(created_at: (15.days.ago)..(Time.now)).limit(limit) + # This code doesn't work in postgres. + # # Question # .where(created_at: (15.days.ago)..(Time.now)) # .limit(limit) # .joins(:impressions) # .group('impressions.impressionable_id')