Class: Api::AdjustmentsController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::AdjustmentsController
- Defined in:
- app/controllers/api/adjustments_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/api/adjustments_controller.rb', line 3 def destroy puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" puts params[object_name] puts params[:id] @object=Adjustment.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => 'Destroyed Successfully' end end |