On 04/09/2011, at 10:04, Nicholas Faiz <[email protected]> wrote:
> Hi Tim,
>
> Engines don't monkey patch classes, they override them. So, for example, if
> you bundle a User model in your Engine, it will replace (not
> enhance/extend/patch) the User model in the hosting application.
No, this is backwards. The hosting application's user model will override the
engine's model. This is why you can override devise's views in your app.
You should be including a module from your engine into ApplicationController if
you want to add additional functionality to it.
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rails-oceania/-/J_odCSgjOdgJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-oceania?hl=en.