Skip to content
Browse files

bugfix so title can be specified.

  • Loading branch information...
1 parent 11ef382 commit e28c328955aeb68bbd8aebaf98e34d0cfa161605 Victor Luft committed Apr 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/notifo.rb
View
2 lib/notifo.rb
@@ -25,7 +25,7 @@ def subscribe_user(username)
# title - name of "notification event"
# uri - the uri that will be loaded when the notification is opened; if specified, must be urlencoded; if a web address, must start with http:// or https://
def post(username, msg, title=nil, uri=nil)
- options = { :body => {:to => username, :msg => msg, :title=>uri, :uri=>uri}, :basic_auth => @auth }
+ options = { :body => {:to => username, :msg => msg, :title=>title, :uri=>uri}, :basic_auth => @auth }
self.class.post('/send_notification', options)
end
end

0 comments on commit e28c328

Please sign in to comment.
Something went wrong with that request. Please try again.