module Apartment

Constants

VERSION

Attributes

database_names[W]
excluded_models[W]
prepend_environment[RW]
seed_after_create[RW]
use_postgres_schemas[RW]

Public Class Methods

configure() { |self| ... } click to toggle source

configure apartment with available options

# File lib/apartment.rb, line 10
def configure
  yield self if block_given?
end
database_names() click to toggle source

Be careful not to use ‘return` here so both Proc and lambda can be used without breaking

# File lib/apartment.rb, line 15
def database_names
  @database_names.respond_to?(:call) ? @database_names.call : @database_names
end
excluded_models() click to toggle source

Default to none

# File lib/apartment.rb, line 20
def excluded_models
  @excluded_models || []
end