lib/pghero/methods/sequences.rb in pghero-2.8.3 vs lib/pghero/methods/sequences.rb in pghero-3.0.0
- old
+ new
@@ -113,10 +113,10 @@
# TODO better message for multiple schemas
end
end
# then populate attributes
- readable = Hash[sequence_attributes.map { |s| [[s[:schema], s[:sequence]], s[:readable]] }]
+ readable = sequence_attributes.to_h { |s| [[s[:schema], s[:sequence]], s[:readable]] }
sequences.each do |sequence|
sequence[:readable] = readable[[sequence[:schema], sequence[:sequence]]] || false
end
end
end