app/controllers/extface/devices_controller.rb in extface-0.4.1a vs app/controllers/extface/devices_controller.rb in extface-0.4.1b

- old
+ new

@@ -81,9 +81,17 @@ when params[:paper_cut].present? then @device.driver.paper_cut end end render action: :show end + + def raw + set_device + if @device.raw? + @device.driver.test(params[:test]) + end + render action: :show + end private # Use callbacks to share common setup or constraints between actions. def set_device @device = extfaceable.extface_devices.find(params[:id])