diff --git a/app/models/laboratory.rb b/app/models/laboratory.rb index dab2f6f39..f53a2afee 100644 --- a/app/models/laboratory.rb +++ b/app/models/laboratory.rb @@ -24,7 +24,7 @@ class Laboratory < ApplicationRecord def site rails_env = EduSetting.get('rails_env') - suffix = rails_env && rails_env != 'production' ? ".#{rails_env}.educoder.net" : '.educoder.net' + suffix = rails_env && rails_env != 'production' ? ".#{rails_env}.trustie.net" : '.trustie.net' identifier ? "#{identifier}#{suffix}" : '' end @@ -126,4 +126,4 @@ class Laboratory < ApplicationRecord def main_site? id == 1 end -end \ No newline at end of file +end diff --git a/app/views/admins/laboratories/shared/_laboratory_item.html.erb b/app/views/admins/laboratories/shared/_laboratory_item.html.erb index 1fadd6367..8fdf9c727 100644 --- a/app/views/admins/laboratories/shared/_laboratory_item.html.erb +++ b/app/views/admins/laboratories/shared/_laboratory_item.html.erb @@ -1,6 +1,6 @@ <% school = laboratory&.school %>