Class: FixDBSchemaConflicts::AutocorrectConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/fix_db_schema_conflicts/autocorrect_configuration.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loadObject



3
4
5
# File 'lib/fix_db_schema_conflicts/autocorrect_configuration.rb', line 3

def self.load
  new.load
end

Instance Method Details

#loadObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/fix_db_schema_conflicts/autocorrect_configuration.rb', line 7

def load
  if less_than_rubocop?(49)
    '.rubocop_schema.yml'
  elsif less_than_rubocop?(53)
    '.rubocop_schema.49.yml'
  elsif less_than_rubocop?(77)
    '.rubocop_schema.53.yml'
  else
    '.rubocop_schema.77.yml'
  end
end