Skip to content

Commit

Permalink
Merge pull request #2316 from cloudnativedaysjp/method-flag
Browse files Browse the repository at this point in the history
User一覧のCSVで参加方法のフラグを出すようにした
  • Loading branch information
takaishi authored May 19, 2024
2 parents 408171d + 4fad705 commit 040a7e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def sub_and_email_must_be_unique_in_a_conference
end

def self.export(event_id)
attr = %w[id email セイ メイ 業種 職種 勤務先名/所属団体 郵便番号 都道府県 勤務先住所1(都道府県以下) 勤務先住所2(ビル名) 電話番号 メールアドレス]
attr = %w[id email セイ メイ 業種 職種 勤務先名/所属団体 郵便番号 都道府県 勤務先住所1(都道府県以下) 勤務先住所2(ビル名) 電話番号 メールアドレス 参加方法]
CSV.generate do |csv|
csv << attr
Profile.where(conference_id: event_id).each do |profile|
Expand All @@ -131,7 +131,8 @@ def self.export(event_id)
profile.company_address_level2.to_s + profile.company_address_line1.to_s,
profile.company_address_line2,
profile.company_tel,
profile.company_email
profile.company_email,
Profile.participations[profile.participation]
]
end
end
Expand Down

0 comments on commit 040a7e7

Please sign in to comment.