Best approach to modify the extension spree-multi-domain?

61 views
Skip to first unread message

Pedro Alonso

unread,
Nov 20, 2013, 7:03:29 PM11/20/13
to spree...@googlegroups.com
Hi,

I have been looking at the extension: https://github.com/spree/spree-multi-domain I like the idea to only have one codebase to support several stores, but I'd like to also separate the back-end, so each admin only have access to manage his store.

I think that in order to achieve that a good approach could be to use the gem 'act_as_tenant', and make all the objects in /spree/core/models to depend from Store.rb. Continue selecting the Store by host name. Any ideas about this one?

Thanks,
Pedro

Ryan Bigg

unread,
Nov 24, 2013, 6:48:57 PM11/24/13
to spree...@googlegroups.com
Hi Pedro,

I did a big writeup about Multitenancy with Spree last year: https://gist.github.com/radar/cfe41d30b1b94f4a5296.

I do not know if acts_as_tenant would be a good solution for this because I just have not investigated it. If you would like to spend some time investigating it, then please do.

--

Ryan Bigg
Community Manager
Spree Commerce, Inc.

Pedro Alonso

unread,
Nov 25, 2013, 4:24:09 AM11/25/13
to spree...@googlegroups.com
Thanks Ryan, I'l have a look and give it a try!
Reply all
Reply to author
Forward
0 new messages