class ZuoraConnect::AppInstanceBase

def init

def init
  @options = Hash.new
  @logins = Hash.new
  @valid = false
  self.attr_builder("timezone", ZuoraConnect.configuration.default_time_zone)
  self.attr_builder("locale", ZuoraConnect.configuration.default_locale)
  PaperTrail.whodunnit = "Backend" if defined?(PaperTrail)
  Apartment::Tenant.switch!(self.id)
  if(ActiveRecord::Migrator.needs_migration?)
    Apartment::Migrator.migrate(self.id)
  end
  Thread.current[:appinstance] = self
end