Browse Source

lint

pull/3058/head
Manny Dinssa 2 weeks ago
parent
commit
f5636e863f
  1. 2
      app/models/organisation.rb

2
app/models/organisation.rb

@ -220,7 +220,7 @@ class Organisation < ApplicationRecord
start_date: created_at, start_date: created_at,
end_date: changes.first&.dig(:start_date)&.yesterday, end_date: changes.first&.dig(:start_date)&.yesterday,
status: changes.empty? || Time.zone.now.to_date < changes.first[:start_date] ? "active" : "inactive", status: changes.empty? || Time.zone.now.to_date < changes.first[:start_date] ? "active" : "inactive",
) )
changes changes
end end

Loading…
Cancel
Save