Class: Api::OptionTypesController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::OptionTypesController
- Defined in:
- app/controllers/api/option_types_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/api/option_types_controller.rb', line 13 def destroy puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" puts params[object_name] puts params[:id] @object=OptionType.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => 'Destroyed' end end |