You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would you think about adding a short message on console boot so that folks that aren't familiar with the methods would be introduced to them?
I'm using the below as a quick way to show new devs to an apartment project the console commands without them needing to dig around or ask about them. And thought it might be something that could be incorporated in the gem.
# .pryrcclassWelcomeClassdefself.tenant_infoActiveRecord::Base.logger.level=1puts"Available Tenants: #{tenant_list}\n"print"Use `st 'tenant'` to switch tenants & `tenant_list` to see list\n"ActiveRecord::Base.logger.level=1endend# run the code at `bin/rails console`Pry.config.exec_string=WelcomeClass.tenant_info
Loading development environment (Rails 6.0.2.2)
Available Tenants: ["public", "ffb", "other"]
Use `st 'tenant'` to switch tenants & `tenant_list` to see list
[1] [development][public] pry(main)>
If you're open to the idea I'd be happy to put together a PR.
Thanks for your great work in picking up the maintenance on this gem!
The text was updated successfully, but these errors were encountered:
Loving the new custom console!
What would you think about adding a short message on console boot so that folks that aren't familiar with the methods would be introduced to them?
I'm using the below as a quick way to show new devs to an apartment project the console commands without them needing to dig around or ask about them. And thought it might be something that could be incorporated in the gem.
If you're open to the idea I'd be happy to put together a PR.
Thanks for your great work in picking up the maintenance on this gem!
The text was updated successfully, but these errors were encountered: