Multi tenancy with Devise and ActiveRecord’s default scope
Ryan Bates, in this screencast shows how to implement multi tenancy with default scopes, using subdomains. In this blog post I show how to implement the same model of multi tenancy using Devise for the authentication layer, and without subdomains. This is useful when you don’t want or can’t use subdomains or for example when you only enable subdomains as a premium feature, meaning that your application needs to have multi tenancy both with and without subdomains.
http://vitobotta.com/rails-multi-tenancy-devise-default-scope/
Post a comment