@ -21,7 +21,14 @@ class Videos::CreateAuthService < ApplicationService
private
def title
@_title ||= params.delete(:title).to_s.strip
@_title ||= begin
str = params.delete(:title).to_s.strip
if str.length > 30
"#{str[0, 15]}...#{str.reverse[0,10].reverse}"
else
str
end
def filename