Module: ActiveRecord::Tenanted::Console::IRBConsole
- Defined in:
- lib/active_record/tenanted/console.rb
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/active_record/tenanted/console.rb', line 7 def start # TODO: we could be setting the current tenant for all tenanted configs. if Rails.env.local? && ActiveRecord::Tenanted.connection_class config = ActiveRecord::Tenanted.connection_class.connection_pool.db_config ActiveRecord::Tenanted::DatabaseTasks.new(config).set_current_tenant end super end |