FEATURE: bookmark topic button

This commit is contained in:
Régis Hanol
2015-01-12 12:10:15 +01:00
parent a9ef92f3d8
commit c681b353f2
14 changed files with 103 additions and 48 deletions

View File

@@ -7,8 +7,14 @@ class PostActionType < ActiveRecord::Base
end
def types
@types ||= Enum.new(:bookmark, :like, :off_topic, :inappropriate, :vote,
:notify_user, :notify_moderators, :spam)
@types ||= Enum.new(:bookmark,
:like,
:off_topic,
:inappropriate,
:vote,
:notify_user,
:notify_moderators,
:spam)
end
def auto_action_flag_types

View File

@@ -280,7 +280,6 @@ SQL
end
def self.ensure_consistency!(topic_id=nil)
update_post_action_cache
# TODO this needs some reworking, when we mark stuff skipped