Can I add lines of code to execute when I start or reload! a Pry session?

98 views Asked by At

My main rails app has a MultiTenent feature. I need to run something like this:

MultiTenant.current_tenant = Company.find(9)

When I start every Pry session or when I reload!. Can I configure Pry to do this automatically?

0

There are 0 answers