Bug #30821
closedActiveModel::UnknownAttributeError: unknown attribute 'name' for Permission
Description
When packaging (rpm or deb) my plugin I have this error:
ActiveModel::UnknownAttributeError: unknown attribute 'name' for Permission
I don't understand why because I didn't change the Permission declaration syntax in my engine. Permission on controller is declared as it should be:
https://github.com/theforeman/foreman_fog_proxmox/blob/53a433554974807d522b937904c1256789a03274/lib/foreman_fog_proxmox/engine.rb#L48
https://github.com/theforeman/foreman/blob/9a251d43967605dbef0bfec79d4ec8e1a7f5e919/test/unit/plugin_test.rb#L580
How could I fix this? What is the correct Permission syntax?
Updated by Ewoud Kohl van Wijngaarden over 4 years ago
- Project changed from Packaging to Foreman
- Category set to Plugin integration
Moving to Foreman since I think the real issue isn't in packaging. In https://github.com/theforeman/foreman-packaging/pull/5709#issuecomment-691232344 I wrote a bit longer explanation, but the short version is that since 3a5d4162c0d0cbfaaf690d7b48b273bd097731ea pending_migrations returns false if a plugin has no DB migrations.
Updated by Ondřej Ezr over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|a4f4c1307e97a0c0dc2f633a0307c411844de011.