diff options
Diffstat (limited to 'app/models/domain_allow.rb')
-rw-r--r-- | app/models/domain_allow.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/domain_allow.rb b/app/models/domain_allow.rb index 4b0a89c18..2e14fce25 100644 --- a/app/models/domain_allow.rb +++ b/app/models/domain_allow.rb @@ -23,6 +23,10 @@ class DomainAllow < ApplicationRecord !rule_for(domain).nil? end + def allowed_domains + select(:domain) + end + def rule_for(domain) return if domain.blank? |