How can I get an instance of ActionDispatch::Integration::Session
in a rails rake task.
I want to be able to call: app.get '/'
like you can do in the rails console.
task :get_app => :environment do
app = ActionDispatch::Integration::Session.new Rails.application
end
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