Skip to content

Commit

Permalink
Use Struct#each_pair
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Oct 26, 2016
1 parent e5c938a commit 5f5e246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/feedjira_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def empty?
end

def to_json(options = nil)
members.flat_map { |key|
if value = self[key].presence
each_pair.flat_map { |key, value|
if value.presence
case key
when :email
"<#{value}>"
Expand Down

0 comments on commit 5f5e246

Please sign in to comment.