WIP
parent
9ee2db72d7
commit
e3abb4bf6a
|
@ -5,10 +5,12 @@ module Alerts
|
|||
string :problem_tag, in: Alert::PROBLEM_TAGS
|
||||
end
|
||||
|
||||
optional { string :slug }
|
||||
|
||||
def execute
|
||||
Alert.create!(device: device,
|
||||
problem_tag: problem_tag,
|
||||
slug: SecureRandom.uuid)
|
||||
problem_tag: problem_tag,
|
||||
slug: slug || SecureRandom.uuid)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue