ruby: remove Apartment from rubyrc
parent
5901766725
commit
64311adfcf
12
ruby/rubyrc
12
ruby/rubyrc
|
@ -22,15 +22,3 @@ class Object
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue