Method: Forward::Config#remove_account
- Defined in:
- lib/forward/config.rb
#remove_account(subdomain) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/forward/config.rb', line 41 def remove_account(subdomain) accounts.delete(subdomain.to_sym) self.default_account = accounts.empty? ? nil : accounts.keys.first write end |