Display local time in the browser
This commit is contained in:
@@ -63,6 +63,10 @@ class Rule < ApplicationRecord
|
||||
end
|
||||
|
||||
# Network-specific methods
|
||||
def network_range?
|
||||
network_range.present?
|
||||
end
|
||||
|
||||
def cidr
|
||||
network_rule? ? network_range&.cidr : conditions&.dig("cidr")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user