I have setup acts_as_tenant to set the current_tenant based on the current subdomain in my ApplicationController :
class ApplicationController < ActionController::Base
set_current_tenant_by_subdomain(:account, :subdomain)
I need to open or close some routes based on some attribute value in the current_tenant instance. However current_tenant is not directly accessible in the rails router. Is there a clean way to circumvent that ? Has the gem put in place any mechanism for that scenario ?
I have setup acts_as_tenant to set the current_tenant based on the current subdomain in my ApplicationController :
I need to open or close some routes based on some attribute value in the current_tenant instance. However current_tenant is not directly accessible in the rails router. Is there a clean way to circumvent that ? Has the gem put in place any mechanism for that scenario ?