Sha256: c6d938058526ecf79deb6eef7734262b93d5e2e5f378c13cc83d7de052178df1
Contents?: true
Size: 959 Bytes
Versions: 3
Compression:
Stored size: 959 Bytes
Contents
## # Apartment Configuration Apartment.configure do |config| # these models will not be multi-tenanted, # but remain in the global (public) namespace config.excluded_models = %w{ ActiveRecord::SessionStore::Session } # use postgres schemas? config.use_postgres_schemas = true # configure persistent schemas (E.g. hstore ) # config.persistent_schemas = %w{ hstore } # add the Rails environment to database names? # config.prepend_environment = true # config.append_environment = true # supply list of database names config.database_names = lambda{ ToDo_Tenant_Or_User_Model.scoped.collect(&:database) } end ## # Elevator Configuration # Rails.application.config.middleware.use 'Apartment::Elevators::Domain' # Rails.application.config.middleware.use 'Apartment::Elevators::Subdomain' Rails.application.config.middleware.use 'Apartment::Elevators::Generic', Proc.new { |request| # TODO: supply generic implementation }
Version data entries
3 entries across 3 versions & 1 rubygems