Make taks endpoint dynamic

This commit is contained in:
Petko Bordjukov 2024-09-13 22:00:19 +03:00
parent ac4bef2cac
commit d6d881190a
1 changed files with 1 additions and 1 deletions

View File

@ -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