David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 4 years ago on Feature Testing with Capybara :
capybara (3.2.1)
rails (5.1.6)

David Kimura PRO said over 4 years ago on Multitenancy :
In that particular scenario, I would extract the company_id from the user model and instead have a company_user model so that you could have a user belong to multiple companies. 

David Kimura PRO said over 4 years ago on Multitenancy :
My first instinct is to go the cookie at the session level route. When the session is destroyed their current company is cleared. Since this functionality is switching and not really related to persistency, I would avoid storing it on the user model. However, that said, it may make sense to have a preferences model (or attribute on the user model) for "default company" which would allow the user to select what their preferred company is.

David Kimura PRO said over 4 years ago on MultiTenant Payment Processing :
I do have this in my backlog and plan on attacking this one after the current series.  You are right though, there are very few resources around this and it can be a rather large task.

David Kimura PRO said over 4 years ago on Ruby Objects and Memoization :
  You really don't need the instance methods in that example, It can be done at the class level. If I were to go back and redo this episode, I would leave any class level qualifying methods out of instance level methods.