# File lib/twitter/cli/models/account.rb, line 6 def self.add(hash) username = hash.delete(:username) account = find_or_initialize_by_username(username) account.attributes = hash account.save set_current(account) if new_active_needed? end