Project

General

Profile

Actions

Bug #30821

closed

ActiveModel::UnknownAttributeError: unknown attribute 'name' for Permission

Added by Tristan Robert over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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?


Related issues 2 (0 open2 closed)

Related to Foreman - Refactor #29498: make Plugin#pending_migration check plugin migrations instead of core onesClosedOndřej EzrActions
Related to Foreman - Bug #31088: 'relation "permissions" does not exist' error during new 2.2 version installationResolvedActions
Actions

Also available in: Atom PDF