Skip to content

Commit

Permalink
fixed formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Felicia Yi committed Sep 28, 2024
1 parent a4a388a commit f76eb30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ def seed
log "\nDone.\n\n"
end



private # -------------------------------------------------------------------------------------------------------

# Used for reporting record counts after completion:
Expand Down
5 changes: 2 additions & 3 deletions db/seeds/db_populator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_org(options)
@casa_org_counter += 1

options.org_name ||= "CASA Organization ##{@casa_org_counter}"
casa_org = CasaOrg.find_or_create_by!(name: options.org_name) { |org|
CasaOrg.find_or_create_by!(name: options.org_name) { |org|
org.name = options.org_name
org.display_name = options.org_name
org.address = Faker::Address.full_address
Expand All @@ -41,7 +41,6 @@ def create_org(options)
]
org.logo.attach(io: File.open(CasaOrg::CASA_DEFAULT_LOGO), filename: CasaOrg::CASA_DEFAULT_LOGO.basename.to_s)
}
casa_org
end

# Create 2 judges for each casa_org.
Expand Down Expand Up @@ -355,6 +354,7 @@ def create_learning_hours(casa_org)
end

private # -------------------------------------------------------------------------------------------------------

def most_recent_past_court_date(casa_case_id)
CourtDate.where(
"date < ? AND casa_case_id = ?",
Expand Down Expand Up @@ -463,5 +463,4 @@ def random_true_false
@true_false_array ||= [true, false]
@true_false_array.sample(random: rng)
end

end

0 comments on commit f76eb30

Please sign in to comment.