Create a lib folder, put your module there and require it in before_app_loads (init.rb)
- Matt On Tue, Mar 10, 2009 at 12:17 PM, Rafael George <[email protected]>wrote: > > Ok, that's sounds good, but where should i put the module in a way > looks intuitive with the app structure ? > > On Tue, Mar 10, 2009 at 3:09 PM, Matt Aimonetti <[email protected]> > wrote: > > why don't you write a module that you include and models that might use > it? > > > > - Matt > > > > On Tue, Mar 10, 2009 at 11:49 AM, Rafael George <[email protected] > > > > wrote: > >> > >> Hi guys, > >> > >> I need to add some helper methods to my app, i don't know if there is > >> a way for me to add some sort of MyTools class or something like that > >> which get loaded with the other classes, or put the method in one of > >> the model which will use that functionality. > >> > >> I want to keep the thing as DRY as possible. > >> > >> Thanks in advance. > >> > >> -- > >> Rafael George > >> > >> > > > > > > > > > > > > > -- > Rafael George > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
