This allows implementers to override in their application when wanted.
It makes the code a little cleaner, no HEREDOC and no inline HTML/JS.
It requires a Rails::Engine instead of Railtie, so that the path discovery for templates works more predictable. This requires a small change to the includer and a rename of the railtie to engine.
This makes the plugin an engine, not a railtie; a rather large change IMHO.
This allows implementers to override in their application when wanted. It makes the code a little cleaner, no HEREDOC and no inline HTML/JS.
It requires a Rails::Engine instead of Railtie, so that the path discovery for templates works more predictable. This requires a small change to the includer and a rename of the railtie to engine. This makes the plugin an engine, not a railtie; a rather large change IMHO.