mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 11:48:06 +01:00
10 lines
235 B
Ruby
10 lines
235 B
Ruby
# frozen_string_literal: true
|
|
|
|
module InetContainer
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
scope :containing, ->(value) { where('ip >>= ?', value) }
|
|
scope :contained_by, ->(value) { where('ip <<= ?', value) }
|
|
end
|
|
end
|