app/models/rostra/question.rb in rostra-0.2.1 vs app/models/rostra/question.rb in rostra-0.3.1

- old
+ new

@@ -22,13 +22,13 @@ # Set number of questions per page for will paginate # paginates_per Rostra::Config.number_of_question_per_page - # Finds questions asked within the last 15 days ordered by non-unique page views. + # Finds questions asked within the last 30 days ordered by non-unique page views. # def self.trending(limit = 5) - Question.where(created_at: (15.days.ago)..(Time.now)).limit(limit).order('impressions_count desc') + Question.where(created_at: (30.days.ago)..(Time.now)).limit(limit).order('impressions_count desc') end def answer_count @answer_count = answers.count end