lib/doggy/models/dashboard.rb in doggy-2.1.0 vs lib/doggy/models/dashboard.rb in doggy-2.1.1
- old
+ new
@@ -25,10 +25,10 @@
def refute_read_only!
self.read_only = false
end
def self.resource_url(id = nil)
- "https://app.datadoghq.com/api/v1/dash/#{id}"
+ ["https://app.datadoghq.com/api/v1/dash", id].compact.join("/")
end
def managed?
!(title =~ Doggy::DOG_SKIP_REGEX)
end