lib/toy.rb in toystore-0.12.0 vs lib/toy.rb in toystore-0.13.0

- old
+ new

@@ -15,31 +15,10 @@ Dir[extensions_path + '**/*.rb'].each { |file| require(file) } module Toy extend self - # Resets all tracking of things in memory. Useful for running - # before each request in development mode with Rails and such. - def reset - IdentityMap.clear - plugins.clear - models.clear - end - - # Clears all the adapters for all the models. Useful in specs/tests/etc. - # Do not use in production, harty harr harr. - # - # Note: that if your models are auto-loaded like in Rails, you will need - # to make sure they are loaded in order to clear them or ToyStore will - # not be aware of their existence. - def clear - models.each do |model| - model.adapter.clear - end - IdentityMap.clear - end - def logger @logger end def logger? @@ -96,10 +75,9 @@ end end require 'toy/identity_map' require 'toy/exceptions' -require 'toy/plugins' require 'toy/object' require 'toy/store' Toy::IdentityMap.enabled = false