app/controllers/extface/devices_controller.rb in extface-0.1.0 vs app/controllers/extface/devices_controller.rb in extface-0.1.1

- old
+ new

@@ -49,11 +49,11 @@ redirect_to devices_url, notice: 'Device was successfully destroyed.' end def test_page set_device - @job = @device.driveable.print_test_page if params[:test_page] + @job = @device.driver.print_test_page if params[:test_page] render action: :show end private # Use callbacks to share common setup or constraints between actions. @@ -61,9 +61,9 @@ @device = extfaceable.extface_devices.find(params[:id]) end # Only allow a trusted parameter "white list" through. def device_params - params.require(:device).permit(:uuid, :name, :driver, :driveable_id, :driveable_type) + params.require(:device).permit(:uuid, :name, :driver_class, :driver_id) end end end