Describe the bug
In my engine I added a console.log("Running") to app/assets/javascripts/rails_admin/custom/ui.js as stated in the example on how to add custom js and css, but nothing is printed on the console, obviously, adding also a function doesn't make the function available in the views.
Adding it to assets precompile has no effect.
Strangely enough, the stylesheet in app/assets/stylesheets/rails_admin/custom/theming.scss is applied, without or without declaring it for precompilation.
The rails app uses Sprockets assets pipeline and rails_admin has been configured to generate the initializer for sprockets.
Reproduction steps
Create an engine which depends on rails_admin
In a RoR app add it to the Gemfile, bundle and rails s
Expected behavior
Javascript from the rails_admin/custom/ui.js must work as per the example.
Additional context
rails version: 7.0.4.2
rails_admin version: 3.1.1
rails_admin npm package version: none, using sprockets
Describe the bug In my engine I added a
console.log("Running")
toapp/assets/javascripts/rails_admin/custom/ui.js
as stated in the example on how to add custom js and css, but nothing is printed on the console, obviously, adding also a function doesn't make the function available in the views. Adding it to assets precompile has no effect. Strangely enough, the stylesheet inapp/assets/stylesheets/rails_admin/custom/theming.scss
is applied, without or without declaring it for precompilation. The rails app uses Sprockets assets pipeline and rails_admin has been configured to generate the initializer for sprockets.Reproduction steps
Expected behavior Javascript from the rails_admin/custom/ui.js must work as per the example.
Additional context
rails
version: 7.0.4.2rails_admin
version: 3.1.1rails_admin
npm package version: none, using sprockets