Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft: Troubleshooting utk staging cannot load tenant dc #570

Closed

Conversation

aprilrieger
Copy link
Collaborator

Story

Refs #issuenumber

Expected Behavior Before Changes

Expected Behavior After Changes

Screenshots / Video

Notes

@@ -49,6 +49,13 @@ class Application < Rails::Application
end
end

config.to_prepare do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would've thought that this is equivalent to the above:

    config.to_prepare do
      # Allows us to use decorator files in the app directory
      Dir.glob(Rails.root.join("app/**/*_decorator*.rb")).sort.each do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end

      Dir.glob(Rails.root.join("lib/**/*_decorator*.rb")).sort.each do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end
    end

Just curious if that's not the case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am grasping at straws in this PR.

@aprilrieger
Copy link
Collaborator Author

This was not the way

@aprilrieger aprilrieger closed this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants