I'm interested in this functionality.  Specifically, I'm more interested in
a decorator where I can insert links to my new plugin into existing views.
That way I can make the UI intuitive, but I don't have to hack the core
app's code.

On Sat, Mar 8, 2008 at 8:48 AM, mateo murphy <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> In my latest project, I had a need to have code in a plugin override
> the code in the app (rather than the usual way) so I modified a couple
> of files to allow that. I was wondering if this was a feature that
> anyone else was interested in? If so I could submit a patch.
>
> There is one thing I wasn't entirely sure about, however. In
> plugin.rb, in the add_plugin_view_paths method, there's the following
> line of code:
>
>  ActionController::Base.view_paths.insert(1, view_path) # push it
> just underneath the app
>
> Is there a particular reason why the the view_path is inserted right
> after the app's, rather than at the end of the array?
>
> thanks
>
> mateo
> _______________________________________________
> Engine-Developers mailing list
> [email protected]
>
> http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
>
_______________________________________________
Engine-Developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org

Reply via email to