[openSUSE/open-build-service] 9b7b56: Prevent ActiveRecord reflection error in Cloud::* ...
Branch: refs/heads/next_rails-7 Home: https://github.com/openSUSE/open-build-service Commit: 9b7b56b169be2cb377b58dc9a1a95603774a20fc https://github.com/openSUSE/open-build-service/commit/9b7b56b169be2cb377b58d... Author: Dany Marcoux <dmarcoux@posteo.de> Date: 2022-08-30 (Tue, 30 Aug 2022) Changed paths: M src/api/app/models/cloud/azure/configuration.rb M src/api/app/models/cloud/ec2/configuration.rb Log Message: ----------- Prevent ActiveRecord reflection error in Cloud::* models The error: ``` ArgumentError: Rails couldn't find a valid model for User association. Please provide the :class_name option on the association declaration. If :class_name is already provided, make sure it's an ActiveRecord::Base subclass. ``` Specifying the User model in those Cloud::* models prevent clashes with the Cloud::User module, which is why ActiveRecord was producing this error.
participants (1)
-
Dany Marcoux