influitive / apartment

Database multi-tenancy for Rack (and Rails) applications
2.67k stars 460 forks source link

How to get request.headers info in apartment #619

Open surajit opened 5 years ago

surajit commented 5 years ago

How to get request.headers info in apartment library. In Rails app config/initializers/apartment.rb I want to fetch "request.headers" info which I request from browser or other devices. Please share the idea its bit urgent.

lcjury commented 5 years ago

A custom elevator might work for you: https://github.com/influitive/apartment#custom-elevator