Slide 3
Slide 3 text
require_dependency,'slug'
require_dependency,'avatar_lookup'
require_dependency,'topic_view'
require_dependency,'rate_limiter'
require_dependency,'text_sentinel'
require_dependency,'text_cleaner'
class,Topic,<,ActiveRecord::Base
,,include,ActionView::Helpers
,,include,RateLimiter::OnCreateRecord
,,def,self.max_sort_order
,,,,2**31,7,1
,,end
,,def,self.featured_users_count
,,,,4
,,end
,,versioned,if:,:new_version_required?
,,acts_as_paranoid
,,after_recover,:update_flagged_posts_count
,,after_destroy,:update_flagged_posts_count
,,rate_limit,:default_rate_limiter
,,rate_limit,:limit_topics_per_day
https://github.com/discourse/discourse/blob/master/app/models/topic.rb