From a2baeb91eaafaea1c5d6cffb5d62fdc595b4d019 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 20 Oct 2013 16:41:37 +0200 Subject: [PATCH] Add a default value for headers in AsciicastCreator --- app/services/asciicast_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/asciicast_creator.rb b/app/services/asciicast_creator.rb index bb60ee5..8b0af29 100644 --- a/app/services/asciicast_creator.rb +++ b/app/services/asciicast_creator.rb @@ -1,6 +1,6 @@ class AsciicastCreator - def create(attributes, headers) + def create(attributes, headers = {}) attributes = AsciicastParams.new(attributes, headers).to_h asciicast = Asciicast.create!(attributes, without_protection: true) AsciicastWorker.perform_async(asciicast.id)