You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing any file (including the POM itself) causes the autoloader to reload everything. Plugins seem to not be included in the reload sweep, however, and the POM fails to render at next page load:
NameError at /some/path
undefined local variable or method `some_plugin'
This can be worked around by require_depdency'ing the plugin's main .rb file and any files referenced therein:
Voom::Presenters.define(:some_pom)dorequire_dependency'voom/presenters/plugins/some_plugin.rb'require_dependency'voom/presenters/plugins/some_plugin/component.rb'plugin:some_plugin# no more NameErrorend
The text was updated successfully, but these errors were encountered:
When using a plugin in a POM, changing files causes the plugin to stop functioning.
Changing any file (including the POM itself) causes the autoloader to reload everything. Plugins seem to not be included in the reload sweep, however, and the POM fails to render at next page load:
This can be worked around by
require_depdency
'ing the plugin's main.rb
file and any files referenced therein:The text was updated successfully, but these errors were encountered: