mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
wrong conditional
This commit is contained in:
parent
4aa1122ef2
commit
325e28c3c8
@ -288,7 +288,7 @@ class User < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update_ip_address!(new_ip_address)
|
def update_ip_address!(new_ip_address)
|
||||||
unless ip_address == new_ip_address && new_ip_address.blank?
|
unless ip_address == new_ip_address || new_ip_address.blank?
|
||||||
update_column(:ip_address, new_ip_address)
|
update_column(:ip_address, new_ip_address)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user