diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f799b3b02..b1340417b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -271,14 +271,6 @@ Style/MultilineBlockLayout: - 'spec/models/member_spec.rb' - 'spec/models/planting_spec.rb' -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles. -# SupportedStyles: symmetrical, new_line, same_line -Style/MultilineHashBraceLayout: - Exclude: - - 'app/models/planting.rb' - # Offense count: 1 # Cop supports --auto-correct. Style/MultilineIfModifier: diff --git a/app/models/planting.rb b/app/models/planting.rb index 34103a273..1819cbee3 100644 --- a/app/models/planting.rb +++ b/app/models/planting.rb @@ -28,7 +28,8 @@ class Planting < ActiveRecord::Base validates :quantity, numericality: { only_integer: true, - greater_than_or_equal_to: 0 }, + greater_than_or_equal_to: 0 + }, allow_nil: true SUNNINESS_VALUES = %w(sun semi-shade shade)