touchAction in android

def longTap(el)
action = Appium::TouchAction.new.long_press(:element => el).wait(5).release
action.perform
end

I get the following errors:
Appium logs:
TypeError: Cannot read property ‘element’ of undefined
at null. (/usr/local/lib/node_modules/appium/lib/devices/android/android-controller.js:901:26)
at androidController.performTouch (/usr/local/lib/node_modules/appium/lib/devices/android/android-controller.js:985:5)
at Object.exports.performTouch [as handle] (/usr/local/lib/node_modules/appium/lib/server/controller.js:331:14)
at next_layer (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/route.js:113:13)
at Route.dispatch (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/route.js:117:5)
at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:222:24
at param (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:307:14)
at param (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:323:14)
at Function.proto.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:367:3)
at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:216:19)

In the ruby output:
Scenario: Testing testing testing # features/content.feature:6
Given I long click element # features/step_definitions/contentSteps.rb:24
ERROR running Appium command: Cannot read property ‘element’ of undefined (Selenium::WebDriver::Error::UnknownError)
/Users/dianamenezes/work/air-watch/cucumber-automation/apps/features/shared/support/testutils/page.rb:41:in longTap' ./features/pages/LoginPage.rb:24:inlongClickUrlField’
./features/step_definitions/contentSteps.rb:26:in /^I long click element/' features/content.feature:7:inGiven I long click element’

I updated to appium 1.3.5-beta and have this working:

def longTap(element)
action = Appium::TouchAction.new.press(element: element).wait(5000).release
action.perform
end