lib/twitter/suggestion.rb in twitter-5.8.0 vs lib/twitter/suggestion.rb in twitter-5.9.0
- old
+ new
@@ -6,10 +6,10 @@
include Equalizer.new(:slug)
attr_reader :name, :size, :slug
# @return [Array<Twitter::User>]
def users
- Array(@attrs[:users]).collect do |user|
+ @attrs.fetch(:users, []).collect do |user|
User.new(user)
end
end
memoize :users
end