Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- entry_type = 'NewKudosReceived'
- start_time = NewsfeedEntryType.start_time_by_entry_type(entry_type)
- end_time = Time.now.utc
- kudos = ReviewVote.all(:conditions => ['created_at between ? and ?', start_time, end_time])
- NewsfeedEntry.factory(entry_type, kudos.first)
- kudos.first
Add Comment
Please, Sign In to add comment