Commit a312ab8d by Your Name

remove unnecessary methods

parent 76d71441
......@@ -84,15 +84,4 @@ class Content
answer
end
def self.by_date_range from_when, to_when
#return all content between from_when and to_when
Content.where(:created_at.gte => (from_when)).where(:created_at.lte => (to_when))
end
def self.by_date_range_and_thread_ids from_when, to_when, thread_ids
#return all content between from_when and to_when
Content.where(:created_at.gte => (from_when)).where(:created_at.lte => (to_when)).
where(:comment_thread_id.in => thread_ids)
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment