Skip to content

Commit ff92d8b

Browse files
authored
Merge pull request #4 from hoppergee/autoload-gem
Autoload gem
2 parents 65a920e + 27800ca commit ff92d8b

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## [Unreleased]
22

3-
## [0.1.0] - 2021-09-24
3+
## [1.0.4] - 2021-10-05
44

5-
- Initial release
5+
- Rename "lib/multi_tenant_support.rb" to "lib/multi-tenant-support.rb"
6+
7+
## [1.0.3] - 2021-10-04
8+
9+
- Prevent most ActiveRecord CRUD methods from acting across tenants.
10+
- Support Row-level Multitenancy
11+
- Build on ActiveSupport::CurrentAttributes offered by rails
12+
- Auto set current tenant through subdomain and domain in controller
13+
- Support ActiveJob and Sidekiq

bin/console

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# frozen_string_literal: true
33

44
require "bundler/setup"
5-
require "multi_tenant_support"
5+
require "rails"
6+
require "multi-tenant-support"
67

78
# You can add fixtures and/or initialization code here to make experimenting
89
# with your gem easier. You can also use a different console, if you like.

lib/generators/multi_tenant_support/templates/initializer.rb.tt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'multi_tenant_support'
2-
31
MultiTenantSupport.configure do
42
model do |config|
53
config.tenant_account_class_name = 'REPLACE_ME'
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module MultiTenantSupport
2-
VERSION = '1.0.3'
2+
VERSION = '1.0.4'
33
end

test/dummy/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Require the gems listed in Gemfile, including any gems
66
# you've limited to :test, :development, or :production.
77
Bundler.require(*Rails.groups)
8-
require "multi_tenant_support"
8+
require "multi-tenant-support"
99

1010
module Dummy
1111
class Application < Rails::Application

test/generators/initializer_generator_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class InitializerGeneratorTest < Rails::Generators::TestCase
1111
run_generator
1212
initializer_file_content = File.read("#{destination_root}/config/initializers/multi_tenant_support.rb")
1313
expected_content = <<~INITIALIZER
14-
require 'multi_tenant_support'
15-
1614
MultiTenantSupport.configure do
1715
model do |config|
1816
config.tenant_account_class_name = 'REPLACE_ME'

0 commit comments

Comments
 (0)