Project

General

Profile

Revision 00bd7de4

Added by Michael Moll about 5 years ago

More Rails 5.1 changes

  • Refs #22045 - Remove condition to destroy_all
  • Refs #22045 - Replace 'xhr' in tests with keyword argument
  • Refs #22045 - Replace deprecated AM::Errors usage
  • Refs #22045 - replace deprecated ActiveRecord_Relation access

View differences:

app/models/service/containers.rb
74 74

  
75 75
    def destroy_wizard_state(wizard_state)
76 76
      wizard_state.destroy
77
      DockerContainerWizardState.destroy_all(["updated_at < ?", (Time.now.utc - 24.hours)])
77
      DockerContainerWizardState.where(["updated_at < ?", (Time.now.utc - 24.hours)]).destroy_all
78 78
    end
79 79

  
80 80
    def load_environment_variables(state, r)

Also available in: Unified diff