On Oct 28, 6:18 pm, Rémi Gagnon <[EMAIL PROTECTED]>
wrote:
> Thank you, you are really right I should put it in my
> application_helper. But Here we will have a lot of projets and I want
> to share this kind of changes to all teams. So that's why I would like
> to ultimatly put it in a gem.
>
> So I'm curious to see how you would include mymodule on
> ActionView::Base.
>
ActionView::Base.send :include, MyModule
With a plugin you'd typically put this in the plugin's init.rb
Fred
> Thanks in advance
>
> Frederick Cheung wrote:
> > On 28 Oct 2008, at 17:46, Rémi Gagnon <[EMAIL PROTECTED]
> > s.net> wrote:
>
> >> I created a file ./lib/action_view/helpers/asset_tag_helper.rb
>
> >> and put in it only the method I want to override. like this
>
> > Don't. Create lib/my_module.rb and then include MyModule into
> > ActionView::Base. Or it might be more convenient to do this in
> > application_helper
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---