Skip to content

Commit

Permalink
fixed syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Apr 15, 2021
1 parent fe2f00b commit 5ef5a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/deployment/20210415012736_task_name.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ namespace :after_party do
desc "Deployment task: set_custom_court_docs_for_orgs"
task task_name: :environment do
CasaOrg.where(name: "Prince George CASA").map do |casa_org|
court_report_template.attach(io: File.new(Rails.root.join("app", "documents", "templates", "prince_george_report_template.docx")), filename: "prince_george_report_template.docx")
casa_org.court_report_template.attach(io: File.new(Rails.root.join("app", "documents", "templates", "prince_george_report_template.docx")), filename: "prince_george_report_template.docx")
end

CasaOrg.where(name: "Voices for Children Montgomery").map do |casa_org|
court_report_template.attach(io: File.new(Rails.root.join("app", "documents", "templates", "montgomery_report_template.docx")), filename: "montgomery_report_template.docx")
casa_org.court_report_template.attach(io: File.new(Rails.root.join("app", "documents", "templates", "montgomery_report_template.docx")), filename: "montgomery_report_template.docx")
end

AfterParty::TaskRecord
Expand Down

0 comments on commit 5ef5a76

Please sign in to comment.