From d6d881190a470bc2dbc8db72aeebaedb3c4ff5c7 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Fri, 13 Sep 2024 22:00:19 +0300 Subject: [PATCH] Make taks endpoint dynamic --- app/models/talk.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/talk.rb b/app/models/talk.rb index fd3e0cd..340c97b 100644 --- a/app/models/talk.rb +++ b/app/models/talk.rb @@ -1,7 +1,7 @@ class Talk < ActiveResource::Base has_many :selections, class_name: 'SelectedTalk' - self.site = 'https://cfp.openfest.org/api/conferences/11' + self.site = ENV['GAUGE_TALKS_ENDPOINT'] || 'https://cfp.openfest.org/api/conferences/1' self.element_name = 'event' def self.ordered_by_id