This is what I have inside a rake task. In this rake task I need to call
another rake task called email:send_messages. However I need to pass the
RAILS_ENV as ‘staging’.
Rake::Task[“rake:email:send_messages”].invoke
I tried a lot of variations but none of them work.
This is what I have inside a rake task. In this rake task I need to call
another rake task called email:send_messages. However I need to pass the
RAILS_ENV as ‘staging’.
Rake::Task[“rake:email:send_messages”].invoke
I tried a lot of variations but none of them work.