Update resource.rb

Changes to support Failover records