Project

General

Profile

Actions

Refactor #13593

closed

Preload assets before sprockets

Added by Daniel Lobato Garcia about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently Foreman core has an initializer (assets_paths) that takes care of finding the Discovery assets in the engine and load them before sprockets is loaded. This is happening because sprockets tries to load the assets before they are defined (:after => finisher_hook is too late).

Just changing it to :before finisher_hook is enough to make it load assets before then and the deprecation error will go away.

Actions #1

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/247 added
Actions #2

Updated by Daniel Lobato Garcia about 8 years ago

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

Also available in: Atom PDF