lib/model_log/log/content.rb in model_log-2.0.0 vs lib/model_log/log/content.rb in model_log-2.0.1
- old
+ new
@@ -16,12 +16,12 @@
def context
Context.new(
current_user: ModelLog.current_user,
requester: ModelLog.requester,
- action: @action,
- resource: @resource,
- changes: Processor.new(@resource, @action).data
+ action: action,
+ resource: resource,
+ changes: Processor.new(resource, action).data
).to_struct
end
end
end
end