ros-apartment 2.8.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "rails", git: "https://github.com/rails/rails.git"
6
- gem "rubocop"
7
-
8
- group :local do
9
- gem "guard-rspec", "~> 4.2"
10
- gem "pry"
11
- end
12
-
13
- platforms :ruby do
14
- gem "sqlite3", "~> 1.4"
15
- end
16
-
17
- platforms :jruby do
18
- gem "activerecord-jdbc-adapter", "~> 52.0"
19
- gem "activerecord-jdbcpostgresql-adapter", "~> 52.0"
20
- gem "activerecord-jdbcmysql-adapter", "~> 52.0"
21
- end
22
-
23
- gemspec path: "../"
@@ -1,22 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Apartment
4
- class Reloader
5
- # Middleware used in development to init Apartment for each request
6
- # Necessary due to code reload (annoying). When models are reloaded, they no longer have the proper table_name
7
- # That is prepended with the schema (if using postgresql schemas)
8
- # I couldn't figure out how to properly hook into the Rails reload process *after* files are reloaded
9
- # so I've used this in the meantime.
10
- #
11
- # Also see apartment/console for the re-definition of reload! that re-init's Apartment
12
- #
13
- def initialize(app)
14
- @app = app
15
- end
16
-
17
- def call(env)
18
- Tenant.init
19
- @app.call(env)
20
- end
21
- end
22
- end