ruby: remove Apartment from rubyrc

master
Guillaume Dott 2019-04-15 13:59:40 +02:00
parent 5901766725
commit 64311adfcf
1 changed files with 0 additions and 12 deletions

View File

@ -22,15 +22,3 @@ class Object
end end
end end
end end
# Ask for Apartment tenant
if defined?(Rails::Console) && defined?(Apartment)
available_tenants = Apartment.tenant_names.sort
default_tenant = available_tenants.first
puts "Available tenants: #{available_tenants.join(',')}"
print "Select tenant (#{default_tenant}): "
tenant = gets.strip
Apartment::Tenant.switch!(available_tenants.include?(tenant) ? tenant : default_tenant)
end