Hi, I need to add some methods to all my models. These methods are likely to be used in pretty much every Rails project I work on for the foreseeable future, so am guessing that it would be best to add them to ActiveRecord.
The methods are all in their own modules, which include additional modules, and are all packaged inside a single Manager module. I have had a look into ActiveRecord, but don't know enough about ActiveRecord yet to dive in and change or add to it. Could someone point me in the right direction? Example [code] manager.rb module Manager # Constants Defined module PackageSearchResult include Packager include Result include Searcher def method1 ... end end end [/code] How would I put Manager into ActiveRecord so that all my models get method1 by default? Thanks Paul -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.