Calculer Girl

Calculer (Windows, Linux et Unix) améliore le monde

RuntimeError: Dépendance circulaire détectée lors du chargement automatique de la constante – Rôle ActiveAdmin.register

J’utilise ActiveAdmin et j’ai un fichier qui fait ceci: ActiveAdmin.register Rôle faire quelque chose — fin Cependant, mon serveur me donne cette erreur: RuntimeError: Circular dependency detected while autoloading constant Role /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:461:in `load_missing_constant’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:184:in `const_missing’ ~/Desktop/Boxfox/app/admin/role.rb:1:in `’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:424:in `load’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:424:in `block in load_file’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:616:in `new_constants_in’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:423:in `load_file’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:324:in `require_or_load’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:463:in `load_missing_constant’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/dependencies.rb:184:in `const_missing’ /Library/Ruby/Gems/2.0.0/gems/activesupport-4.0.10/lib/active_support/inflector/methods.rb:226:in `const_get’ […]