Sha256: bd0fd4912308fe49a19bf0d5726ce60de6170878c7dd89c1d61a2876b5745ffe
Contents?: true
Size: 436 Bytes
Versions: 4
Compression:
Stored size: 436 Bytes
Contents
module RestPack::Activity::Service::Commands::Activity class Destroy < RestPack::Service::Command required do integer :id integer :application_id end def execute activity = Models::Activity.find_by_id_and_application_id( inputs[:id], inputs[:application_id] ) if activity activity.destroy nil else status :not_found end end end end
Version data entries
4 entries across 4 versions & 1 rubygems