From 64311adfcf28256978daf057b99f9493d6dd30a0 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Mon, 15 Apr 2019 13:59:40 +0200 Subject: [PATCH] ruby: remove Apartment from rubyrc --- ruby/rubyrc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ruby/rubyrc b/ruby/rubyrc index fcb0290..c40bd4a 100644 --- a/ruby/rubyrc +++ b/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