I have a couple classes that are used only by a rake task. I realize that rake tasks normally live @ lib/tasks/whatever.rake but where should i place the supporting classes?
Thank you!
$RAILS_ROOT/lib
or $RAILS_ROOT/lib/special_task/
would probably be the best as its in the default load path and you can do a simple require 'my_task_helper'
or require 'special_task/helper'
respectively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With