Did you ever figure out how this is done? I'm stuck on the exact problem (trying to use some custom module code inside a rake task).
On Apr 15, 8:06 pm, Mario Gr <rails-mailing-l...@andreas-s.net> wrote: > I was a little off, but still haven't quite figured it out. I currently > have: > > > > > /lib/module/order_process.rb > >moduleorder_process > > def process_order(id) > > #do stuff > > end > > > /lib/tasks/ordering.rake > > > include 'order_process.rb' > > namespace :send_report do > > task:order => :environment do > > process_order(id) > > end > > end > > > /app/models/segment.rb > > class Segment < ActiveRecord::Base > > include 'report_csv_process.rb' > > > bla bla > > > end > > I tried removing the single quotes, without luck > -- > 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 rubyonrails-talk@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 -~----------~----~----~----~------~----~------~--~---