From e05d8df2c0957aa60ba28b1fbba2dc3d1f0a2a54 Mon Sep 17 00:00:00 2001 From: Alexander Paramonov Date: Sun, 11 May 2014 23:39:14 +0300 Subject: [PATCH] Cleanup --- lib/undo.rb | 2 +- lib/undo/keeper.rb | 2 +- lib/undo/storage/memory.rb | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/undo.rb b/lib/undo.rb index 1dfcd05..aaf0cc4 100644 --- a/lib/undo.rb +++ b/lib/undo.rb @@ -21,7 +21,7 @@ def self.delete(uuid, options = {}) private def self.config - @config ||= Undo::Config.new + @config ||= Config.new end def self.keeper(options) diff --git a/lib/undo/keeper.rb b/lib/undo/keeper.rb index 7b7f1b4..535c9ec 100644 --- a/lib/undo/keeper.rb +++ b/lib/undo/keeper.rb @@ -11,7 +11,7 @@ def initialize(config, options) def store(object) build_uuid(object).tap do |uuid| - reflection = serializer.serialize(object, options) + reflection = serializer.serialize object, options storage.store uuid, reflection, options end end diff --git a/lib/undo/storage/memory.rb b/lib/undo/storage/memory.rb index bf1d5a5..3fee705 100644 --- a/lib/undo/storage/memory.rb +++ b/lib/undo/storage/memory.rb @@ -17,8 +17,6 @@ def delete(uuid, options = {}) end private - attr_writer :storage - def storage @storage ||= {} end