lib/dito/track.rb in dito-0.0.1 vs lib/dito/track.rb in dito-0.0.2

- old
+ new

@@ -18,13 +18,13 @@ id_type = 'twitter_id' elsif options[:id].present? id = options[:id] id_type = 'id' else - return { error: { message: 'Missing the user id param. See the available options here: http://developers.dito.com.br/docs/sdks/ruby' } } + return { :error => { :message => 'Missing the user id param. See the available options here: http://developers.dito.com.br/docs/sdks/ruby' } } end - params = { event: options[:event].to_json } + params = { :event => options[:event].to_json } params[:id_type] = id_type if id_type.present? Dito::Request.post 'events', "/users/#{id}/", params end end \ No newline at end of file