Browse Source

Preserve changes to methods after merge

pull/2499/head
Manny Dinssa 2 years ago
parent
commit
37a578df47
  1. 8
      app/models/lettings_log.rb

8
app/models/lettings_log.rb

@ -709,15 +709,15 @@ class LettingsLog < Log
def scheme_has_multiple_locations? def scheme_has_multiple_locations?
return false unless scheme return false unless scheme
@scheme_locations_count ||= scheme.locations.active_in_2_weeks.size scheme_locations_count ||= scheme.locations.active_in_2_weeks.size
@scheme_locations_count > 1 scheme_locations_count > 1
end end
def scheme_has_large_number_of_locations? def scheme_has_large_number_of_locations?
return false unless scheme return false unless scheme
@scheme_locations_count ||= scheme.locations.active_in_2_weeks.size scheme_locations_count ||= scheme.locations.active_in_2_weeks.size
@scheme_locations_count > 19 scheme_locations_count > 19
end end
private private

Loading…
Cancel
Save