Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexParamonov committed May 11, 2014
1 parent d1957c4 commit e05d8df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/undo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/undo/keeper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/undo/storage/memory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ def delete(uuid, options = {})
end

private
attr_writer :storage

def storage
@storage ||= {}
end
Expand Down

0 comments on commit e05d8df

Please sign in to comment.