Created
August 8, 2018 23:17
-
-
Save tiagogeraldi/2f910ba5e8d026060a3cbacb6165b0b9 to your computer and use it in GitHub Desktop.
Part of Apartment with no subdomain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
before_action :tenant_session | |
private | |
def tenant_session | |
if !session[:tenant] | |
redirect_to [:new, :tenant_session] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment