Sha256: b7ea806ae1b8a7ef98f6976c7b522121320cc503165ffc7398e065d30c1ea67d
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
[](https://hakiri.io/github/PHCNetworks/multi-tenancy-warden/master) [](https://codeclimate.com/github/PHCNetworks/multi-tenancy-warden) [](https://gemnasium.com/github.com/PHCNetworks/multi-tenancy-warden) [](https://badge.fury.io/rb/mtwarden) ### Mtwarden(MultiTenancyWarden) Documentation PHC mtwarden-warden gem adds a separate multi-tenant layer that handles all user registrations, multi-tenancy app functions and login through subdomains using Warden authentication gem. #### Step 1 - Add Mtwarden to your gemfile gem 'mtwarden', '~> 2.2', '>= 2.2.5' bundle exec install #### Step 2 - Add and migrate mtwarden database tables rake railties:install:migrations rake db:migrate #### Step 3 - Mount the Engine in your Routes File Add this line at the top of the routes.rb file. require 'mtwarden/constraints/subdomain_required' #### Step 4 - Mount the Engine in your Routes File Add this line at the end of the routes.rb file. mount Mtwarden::Engine, :at => '/' #### Step 5 - Constrain the routes you want secured in your routes.rb file. All the routes you want to have multi-tenancy login functions goes in between the constraints block. constraints(Mtwarden::Constraints::SubdomainRequired) do # Routes Requiring Security & Multi-Tenancy Routes end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mtwarden-3.0.1 | README.md |