mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
parent
a82625c635
commit
c6bd590b38
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class WhiteIp < ActiveRecord::Base
|
|||
|
||||
class << self
|
||||
def include_ip?(ip)
|
||||
where("#{table_name}.ipv4 = '#{ip}' OR #{table_name}.ipv6 = '#{ip}'").any?
|
||||
where('ipv4 = :ip OR ipv6 = :ip', ip: ip).any?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue