Core libraries and tools part for pro architecture. It's a submodule - use from this perspective http://git.maniak.pro/madmaniak/pro
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
181 B
11 lines
181 B
Service __FILE__ do
|
|
|
|
def perform(data)
|
|
effect = $models[data[:ref][0].to_sym]
|
|
.where(id: data[:ref][1])
|
|
.delete
|
|
|
|
broadcast data unless effect.zero?
|
|
end
|
|
|
|
end
|
|
|