Skip to content

Commit 55e07cf

Browse files
authored
Merge pull request #229 from okuramasafumi/okuramasafumi-patch-1
Correct links in README
2 parents 898c101 + e3f24bf commit 55e07cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ you need to create a new tenant, you can run the following command:
6868
Apartment::Tenant.create('tenant_name')
6969
```
7070

71-
If you're using the [prepend environment](https://github.com/influitive/apartment#handling-environments) config option or you AREN'T using Postgresql Schemas, this will create a tenant in the following format: "#{environment}\_tenant_name".
71+
If you're using the [prepend environment](https://github.com/rails-on-services/apartment#handling-environments) config option or you AREN'T using Postgresql Schemas, this will create a tenant in the following format: "#{environment}\_tenant_name".
7272
In the case of a sqlite database, this will be created in your 'db/' folder. With
7373
other databases, the tenant will be created as a new DB within the system.
7474

@@ -275,7 +275,7 @@ In the examples above, we show the Apartment middleware being appended to the Ra
275275
Rails.application.config.middleware.use Apartment::Elevators::Subdomain
276276
```
277277

278-
By default, the Subdomain middleware switches into a Tenant based on the subdomain at the beginning of the request, and when the request is finished, it switches back to the "public" Tenant. This happens in the [Generic](https://github.com/influitive/apartment/blob/development/lib/apartment/elevators/generic.rb#L22) elevator, so all elevators that inherit from this elevator will operate as such.
278+
By default, the Subdomain middleware switches into a Tenant based on the subdomain at the beginning of the request, and when the request is finished, it switches back to the "public" Tenant. This happens in the [Generic](https://github.com/rails-on-services/apartment/blob/development/lib/apartment/elevators/generic.rb#L22) elevator, so all elevators that inherit from this elevator will operate as such.
279279

280280
It's also good to note that Apartment switches back to the "public" tenant any time an error is raised in your application.
281281

0 commit comments

Comments
 (0)