Move config option to a better place

This commit is contained in:
Maikel Linke
2025-08-12 16:19:45 +10:00
parent 78fdaa68c8
commit 05b00f16ad
2 changed files with 1 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ class ApplicationRecord < ActiveRecord::Base
include ArelHelpers::JoinAssociation
self.abstract_class = true
self.include_root_in_json = true
def self.image_service
ENV["S3_BUCKET"].present? ? :amazon_public : :local

View File

@@ -3,5 +3,3 @@ require_relative "application"
# Initialize the Rails application.
Rails.application.initialize!
ActiveRecord::Base.include_root_in_json = true