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

16 lines
314 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +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