Actions
Bug #12328
closedHost STI does not work in engine initializers
Description
When I use Host::Base.descendants I expect to return all descendants (at least those defined in core) but we don't load these classes. This is usually an issue in engines if you need to work with descendants in initializers, until Host::Managed was referenced from somewhere. Simple solution is to use require_dependency 'host/managed' as for other STI. To reproduce, just start rails console in development mode and run
Host::Base.descendants
Updated by The Foreman Bot over 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2868 added
- Pull request deleted (
)
Updated by Marek Hulán over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 7fff21880b4e1f73ca33e2e3ba07a10d74b51286.
Updated by Marek Hulán over 9 years ago
- Translation missing: en.field_release set to 71
Actions