Scoping by tenant id
Scoping by database field
Now it's working with apartment gem
Using database_cleaner as the book is using - although the way the book have teached not worked. Used the apartment gem documentation to fix that
Last changes to support multitenancy based on subdomain
Extracts partial from application layout