lib/spf/model.rb in spf-0.0.4 vs lib/spf/model.rb in spf-0.0.5
- old
+ new
@@ -516,11 +516,11 @@
# Propagate any other results (including {Perm,Temp}Error) as-is:
raise result
end
- def nested_record(server, request)
+ def nested_record(server=nil, request=nil)
return @nested_record if @nested_record
authority_domain = self.domain(server, request)
sub_request = request.new_sub_request({:authority_domain => authority_domain})
return @nested_record = server.select_record(sub_request)
end
@@ -750,10 +750,10 @@
# Propagate any other results as-is:
result.throw
end
- def nested_record(server, request)
+ def nested_record(server=nil, request=nil)
return @nested_record if @nested_record
server.count_dns_interactive_term(request)
authority_domain = self.domain(server, request)
sub_request = request.new_sub_request({:authority_domain => authority_domain})
return @nested_record = server.select_record(sub_request)