You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class AsciicastCreator
|
|
|
|
def create(attributes, headers = {})
|
|
attributes = AsciicastParams.new(attributes, headers).to_h
|
|
asciicast = Asciicast.create!(attributes, without_protection: true)
|
|
AsciicastWorker.perform_async(asciicast.id)
|
|
|
|
asciicast
|
|
end
|
|
|
|
end
|