Require_asset from parent application using file in Engine

I have an application that uses the kernel core.

The kernel has vendor / javascripts / filepicker_v1

I redefine the rails_admin file from the "application"

Application / assets / JavaScripts / rails_admin / custom / ui.js.erb

require_asset 'filepicker_v1' inside this file does not seem to load the file from the built-in mechanism.

Any thoughts on how to solve this?

+4
source share
1 answer
 //= require filepicker_v1 

will work

0
source

Source: https://habr.com/ru/post/1479692/


All Articles