Skip to content

Commit

Permalink
Remove depracated tld_length config option:
Browse files Browse the repository at this point in the history
tld_length was removed in influitive/apartment#309 , this configuration option doesn't have any effect now.
  • Loading branch information
choznerol authored and rpbaltazar committed Jun 24, 2020
1 parent cbf4f22 commit e6b4cae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/apartment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class << self

WRITER_METHODS = %i[tenant_names database_schema_file excluded_models
default_schema persistent_schemas connection_class
tld_length db_migrate_tenants seed_data_file
db_migrate_tenants seed_data_file
parallel_migration_threads pg_excluded_names].freeze

attr_accessor(*ACCESSOR_METHODS)
Expand Down Expand Up @@ -54,6 +54,10 @@ def tenants_with_config
extract_tenant_config
end

def tld_length=(_)
Apartment::Deprecation.warn('`config.tld_length` have no effect because it was removed in https://github.com/influitive/apartment/pull/309')
end

def db_config_for(tenant)
(tenants_with_config[tenant] || connection_config)
end
Expand Down

0 comments on commit e6b4cae

Please sign in to comment.