lib/model_log/context.rb in model_log-2.0.0 vs lib/model_log/context.rb in model_log-2.0.1

- old
+ new

@@ -1,13 +1,11 @@ module ModelLog - module Log - class Context - def initialize(context) - @context = context - end + class Context + def initialize(context) + @context = context + end - def to_struct - Struct.new(*@context.keys).new(*@context.values) - end + def to_struct + Struct.new(*@context.keys).new(*@context.values) end end end