lib/evil_seed/configuration.rb in evil-seed-0.5.0 vs lib/evil_seed/configuration.rb in evil-seed-0.6.0

- old
+ new

@@ -5,22 +5,26 @@ require_relative 'anonymizer' module EvilSeed # This module holds configuration for creating dump: which models and their constraints class Configuration - attr_accessor :record_dumper_class + attr_accessor :record_dumper_class, :verbose, :verbose_sql, :unscoped, :dont_nullify def initialize @record_dumper_class = RecordDumper + @verbose = false + @verbose_sql = false + @unscoped = false + @dont_nullify = false @ignored_columns = Hash.new { |h, k| h[k] = [] } end def roots @roots ||= [] end def root(model, *constraints) - new_root = Root.new(model, *constraints) + new_root = Root.new(model, dont_nullify, *constraints) yield new_root if block_given? roots << new_root end def customize(model_class, &block)