saved searches: add query normalization tests.

This commit is contained in:
evazion
2017-04-28 16:22:37 -05:00
parent 0b63dd32d1
commit 8e5491a536
3 changed files with 14 additions and 7 deletions

View File

@@ -186,8 +186,8 @@ class TagAlias < ActiveRecord::Base
end
def initialize_creator
self.creator_id = CurrentUser.user.id
self.creator_ip_addr = CurrentUser.ip_addr
self.creator_id ||= CurrentUser.user.id
self.creator_ip_addr ||= CurrentUser.ip_addr
end
def antecedent_tag