jbbarth / redmine_base_deface

Integrate with the deface gem to manage view modifications in plugins
MIT License
40 stars 34 forks source link

Defaces not found until redmine:plugins:migrate is executed #10

Open jgizycki opened 2 years ago

jgizycki commented 2 years ago

I successfully installed the plugin redmine_base_deface and created a second one which defines an override for the virtual path admin/plugins. It uses the deface dsl so that I have a file called override-test.html.erb.deface under app/overrides/admin/plugins inside my plugin directory.

After I start redmine using bin/rails server both plugins show up in redmine but the deface changes do not. Then I execute bin/rake redmine:plugins:migrate, nothing happens as I have a fresh redmine and only these two plugins, and my deface changes are picked up.

My guess that this hasn't anything to do with migrations in particular. But what happens during the rake task that I need to execute it and only then the defaces are executed? Is there maybe any template caching applied during startup that I need to clear beforehand?