Display local time in the browser

This commit is contained in:
Dan Milne
2025-11-10 07:53:20 +11:00
parent ce2feb4180
commit 5851e04e06
9 changed files with 85 additions and 15 deletions

View File

@@ -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