Skip to content

Commit

Permalink
self removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tompesman committed Jul 1, 2012
1 parent c553e18 commit a533184
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/push/message_c2dm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def use_connection

def as_hash
json = ActiveSupport::OrderedHash.new
json['registration_id'] = self.device
json['collapse_key'] = self.collapse_key
json['delay_when_idle'] = "1" if self.delay_when_idle == true
self.payload.each { |k, v| json["data.#{k.to_s}"] = v.to_s } if self.payload
json['registration_id'] = device
json['collapse_key'] = collapse_key
json['delay_when_idle'] = "1" if delay_when_idle == true
self.payload.each { |k, v| json["data.#{k.to_s}"] = v.to_s } if payload
json
end

Expand Down

0 comments on commit a533184

Please sign in to comment.