lib/apartment.rb in apartment-0.10.1 vs lib/apartment.rb in apartment-0.10.2
- old
+ new
@@ -1,11 +1,11 @@
require 'apartment/railtie'
module Apartment
class << self
- attr_accessor :use_postgres_schemas, :seed_after_create
+ attr_accessor :use_postgres_schemas, :seed_after_create, :prepend_environment
attr_writer :database_names, :excluded_models
# configure apartment with available options
def configure
yield self if block_given?
@@ -69,6 +69,7 @@
Apartment.configure do |config|
config.excluded_models = []
config.use_postgres_schemas = true
config.database_names = []
config.seed_after_create = false
+ config.prepend_environment = true
end
\ No newline at end of file