models: stop saving IP addresses in version tables.
Mark various `creator_ip_addr` and `updater_ip_addr` columns as ignored and stop updating them in preparation for dropping them.
This commit is contained in:
@@ -56,9 +56,9 @@ class ForumTopicsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
@forum_topic = authorize ForumTopic.new(permitted_attributes(ForumTopic))
|
||||
@forum_topic.creator = CurrentUser.user
|
||||
@forum_topic = authorize ForumTopic.new(creator: CurrentUser.user, **permitted_attributes(ForumTopic))
|
||||
@forum_topic.original_post.creator = CurrentUser.user
|
||||
@forum_topic.original_post.creator_ip_addr = CurrentUser.ip_addr
|
||||
@forum_topic.save
|
||||
|
||||
respond_with(@forum_topic)
|
||||
|
||||
Reference in New Issue
Block a user