Sha256: 149dd6e0d6b898cf26d9ba05cb0ea9dacb1431b662f2eef6d9fa232b0f3fc33f
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
[](https://codeclimate.com/github/frankjmattia/active_connection) [](https://travis-ci.org/frankjmattia/active_connection) [](https://coveralls.io/r/frankjmattia/active_connection?branch=master) [](https://gemnasium.com/frankjmattia/active_connection) # ActiveConnection ActiveConnection is a simple wrapper around ActiveRecord::Base.connection.schema_search_path. ## Installation Add this line to your application's Gemfile: gem 'active_connection' And then execute: $ bundle ## Usage Useful in multi-tenant situations where you have a user table in the public schema and a separate schema for each tenants data. ```ruby ActiveConnection.schema_search_path('other_schema', 'public') do # Do something that depends on other_schema end ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_connection-0.0.3 | README.md |
active_connection-0.0.2 | README.md |