cartodb-4.42/lib/carto/tracking/validators/widget.rb

16 lines
314 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
module Carto
module Tracking
module Validators
module Widget
module Existence
def check_widget_exists!
unless @format.fetch_record!(:widget)
raise Carto::LoadError.new('Widget not found')
end
end
end
end
end
end
end