Skip to content

Commit

Permalink
wrong conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Mar 9, 2013
1 parent 4aa1122 commit 325e28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def update_visit_record!(date)
end

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)
end
end
Expand Down

0 comments on commit 325e28c

Please sign in to comment.