mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
replaced each to find_each
This commit is contained in:
parent
8457cb1d18
commit
67d7a307a1
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ module ToCsv
|
|||
def to_csv
|
||||
CSV.generate do |csv|
|
||||
csv << column_names
|
||||
all.each do |item|
|
||||
all.find_each do |item|
|
||||
csv << item.attributes.values_at(*column_names)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue