spec/spec_helper.rb in schema_plus-2.0.0.pre2 vs spec/spec_helper.rb in schema_plus-2.0.0.pre3

- old
+ new

@@ -22,15 +22,15 @@ config.include(SchemaPlusHelpers) config.warnings = true end def with_fk_config(opts, &block) - save = Hash[opts.keys.collect{|key| [key, SchemaPlus.config.foreign_keys.send(key)]}] + save = Hash[opts.keys.collect{|key| [key, SchemaPlusForeignKeys.config.send(key)]}] begin - SchemaPlus.config.foreign_keys.update_attributes(opts) + SchemaPlusForeignKeys.config.update_attributes(opts) yield ensure - SchemaPlus.config.foreign_keys.update_attributes(save) + SchemaPlusForeignKeys.config.update_attributes(save) end end def with_fk_auto_create(value = true, &block) with_fk_config(:auto_create => value, &block)