Limit title/command to 255 chars
This commit is contained in:
parent
bf925c566d
commit
94c39b6441
@ -54,6 +54,14 @@ class Asciicast < ActiveRecord::Base
|
|||||||
collection
|
collection
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def title=(value)
|
||||||
|
value ? super(value.strip[0...255]) : super
|
||||||
|
end
|
||||||
|
|
||||||
|
def command=(value)
|
||||||
|
value ? super(value.strip[0...255]) : super
|
||||||
|
end
|
||||||
|
|
||||||
def stdout
|
def stdout
|
||||||
return @stdout if @stdout
|
return @stdout if @stdout
|
||||||
@stdout = Stdout::Buffered.new(get_stdout)
|
@stdout = Stdout::Buffered.new(get_stdout)
|
||||||
|
Loading…
Reference in New Issue
Block a user