lib/totter/client/votes.rb in totter-0.3.1 vs lib/totter/client/votes.rb in totter-0.3.2

- old
+ new

@@ -11,13 +11,13 @@ def create_vote(decision_user_id, decision_id, choice_id, options = {}) unique_id = options[:unique_id] raise UniqueIDRequired unless unique_id or self.authenticated? path = "users/#{decision_user_id}/decisions/#{decision_id}/votes" - params = { choice_id: choice_id, unique_id: unique_id } + params = { :choice_id => choice_id, :unique_id => unique_id } slug = options[:invitation_slug] - params[:invitation] = { slug: slug } if slug + params[:invitation] = { :slug => slug } if slug post(path, params).body end end end