Dan Tappin
Dan Tappin

Reputation: 3032

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

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?

Upvotes: 0

Views: 104

Answers (0)

Related Questions