jeudi 15 octobre 2015

Acts as tenant with devise (current user method not working with subdomains.)

I am having two devise models. One for Businesses and the other for the Users who can see details of the businesses.

I can sign-in a user on the main dashboard but on the sub domain index method of a business the current_user method is not working.The same is happening for businesses.(current_business is not working)

ActsAsTenant.current_tenant is working however.

The output of current_user is 'nil' in the sub domains.(Using pry)

Does devise deletes the sessions on a call to a subdomain or is it somehow related to the auth-token devise creates?

Aucun commentaire:

Enregistrer un commentaire