Bug #20543

Override asset_path for sprockets in task

Added by Daniel Lobato Garcia 6 months ago. Updated 5 months ago.

Status:Closed
Priority:Normal
Assigned To:Daniel Lobato Garcia
Category:-
Target version:-
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4734
Story points-
Velocity based estimate-
Release1.16.0Release relationshipAuto

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

Revision 07a748a8
Added by Daniel Lobato Garcia 5 months ago

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.

History

#1 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Assigned To set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman/pull/4734 added

#2 Updated by Anonymous 5 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Marek Hulán 5 months ago

  • Release set to 1.16.0

Also available in: Atom PDF