Bug #20543
Override asset_path for sprockets in task
Description
Sprockets runs on its own context in the task plugin_assets.rake since #20287. This means that the asset paths are not visible to it immediately, the way we provide that functionality is by overriding a method in Sprockets that gets the paths from the Rails app since we're on Rake context.
Associated revisions
History
#1
Updated by The Foreman Bot about 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Daniel Lobato Garcia
- Pull request https://github.com/theforeman/foreman/pull/4734 added
#2
Updated by Anonymous about 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 07a748a8d89d32dbdccd582f31ba4738b229e34a.
#3
Updated by Marek Hulán about 5 years ago
- Legacy Backlogs Release (now unused) set to 240
Fixes #20543 - implement asset_path for plugin_assets
Sprockets runs on its own context in the task plugin_assets.rake since
#20287. This means that the asset paths are not visible to it
immediately, the way we provide that functionality is by overriding a
method in Sprockets that gets the paths from the Rails app since we're
on Rake context.