Project

General

Profile

Revision 7ff105d1

Added by David Davis about 7 years ago

Fixes #12681 - Support rubocop 0.35.1 by fixing broken rules

View differences:

app/models/service/containers.rb
27 27
      container = Container.new(wizard_state.container_attributes) do |r|
28 28
        # eagerly load environment variables and exposed ports configuration
29 29
        state = DockerContainerWizardState.includes(
30
            :environment => [:environment_variables, :exposed_ports]).find(wizard_state.id)
30
          :environment => [:environment_variables, :exposed_ports]).find(wizard_state.id)
31 31

  
32 32
        load_environment_variables(state, r)
33 33
        load_exposed_ports(state, r)
......
66 66

  
67 67
    def destroy_wizard_state(wizard_state)
68 68
      wizard_state.destroy
69
      DockerContainerWizardState.destroy_all(["updated_at < ?", (Time.now - 24.hours)])
69
      DockerContainerWizardState.destroy_all(["updated_at < ?", (Time.now.utc - 24.hours)])
70 70
    end
71 71

  
72 72
    def load_environment_variables(state, r)

Also available in: Unified diff