lib/mihari/services/proxies.rb in mihari-7.1.3 vs lib/mihari/services/proxies.rb in mihari-7.2.0

- old
+ new

@@ -77,13 +77,13 @@ # # @return [Mihari::Rule] # def rule - @rule ||= [].tap do |out| + @rule ||= lambda do data = Mihari::Models::Rule.find(rule_id).data - out << Rule.new(**data) - end.first + Rule.new(**data) + end.call end end end end