cartodb/lib/carto/tracking/validators/widget.rb
2020-06-15 10:58:47 +08:00

16 lines
314 B
Ruby

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