Class: CPEE::Properties::DelDetail

Inherits:
Riddl::Implementation
  • Object
show all
Defined in:
lib/cpee/implementation_properties.rb

Overview

}}}

Instance Method Summary collapse

Instance Method Details

#responseObject

{{{



632
633
634
635
636
637
638
639
640
641
# File 'lib/cpee/implementation_properties.rb', line 632

def response
  id = @a[0]
  opts = @a[1]
  if CPEE::Persistence::extract_item(id,opts,@r.join('/'))
    CPEE::Persistence::set_position(id,opts,'position','unmark' => [ { 'position' => @r.last } ])
  else
    @status = 404
  end
  nil
end