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

{{{



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

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