Sha256: 497c6e9b9915b952dc665b6ad80b43300f2a6d96701480daed1c5d50275e90f9

Contents?: true

Size: 526 Bytes

Versions: 2

Compression:

Stored size: 526 Bytes

Contents

require 'multiplicity/version'
require 'multiplicity/tenant'
require 'multiplicity/middleware'

module Multiplicity
  def self.adapter; @adapter; end

  def self.adapter=(adapter)
    @adapter = adapter
  end

  def self.table_name
    @table ||= :tenants
  end

  def self.table_name=(value)
    @table = value.to_sym
  end

  def self.domain; @domain; end

  def self.domain=(uri)
    @domain = uri.to_s
  end
end

# Always load AR adapter for now, until there is more than one
require 'multiplicity/adapters/active_record'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
multiplicity-0.1.1 lib/multiplicity.rb
multiplicity-0.1.0 lib/multiplicity.rb