Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
PrivateMessages::Messages cloning options before altering
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Andreas Grunbaum committed Oct 22, 2014
1 parent 3df8846 commit 20f43b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/redditkit/client/private_messages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module PrivateMessages
# @option options [Boolean] :mark Whether to mark requested messages as read.
# @return [RedditKit::PaginatedResponse]
def messages(options = {})
options = options.clone

category = options[:category] || 'inbox'
path = "message/#{category}.json"
options.delete :category
Expand Down

0 comments on commit 20f43b1

Please sign in to comment.