revert default scope change
This commit is contained in:
@@ -14,7 +14,6 @@ class ForumTopic < ActiveRecord::Base
|
||||
scope :active, where("is_deleted = false")
|
||||
search_methods :title_matches
|
||||
accepts_nested_attributes_for :original_post
|
||||
default_scope limit(1)
|
||||
|
||||
def editable_by?(user)
|
||||
creator_id == user.id || user.is_moderator?
|
||||
|
||||
Reference in New Issue
Block a user