diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-07-03 16:01:41 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-07-06 12:01:36 +0200 |
commit | e1a3bf30b6ea04f2c658729f65a0eb09847dd341 (patch) | |
tree | 9c418de69fba8187717aa16979e102212417c634 /rubocop | |
parent | 6f1e00ea36bdcc39da955f7aa2add6a21432d190 (diff) | |
download | gitlab-ce-e1a3bf30b6ea04f2c658729f65a0eb09847dd341.tar.gz |
Rename ActiverecordSerialize cop
This cop has been renamed to ActiveRecordSerialize to match the way
"ActiveRecord" is usually written.
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/active_record_serialize.rb (renamed from rubocop/cop/activerecord_serialize.rb) | 2 | ||||
-rw-r--r-- | rubocop/rubocop.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rubocop/cop/activerecord_serialize.rb b/rubocop/cop/active_record_serialize.rb index 9bdcc3b4c34..204caf37f8b 100644 --- a/rubocop/cop/activerecord_serialize.rb +++ b/rubocop/cop/active_record_serialize.rb @@ -3,7 +3,7 @@ require_relative '../model_helpers' module RuboCop module Cop # Cop that prevents the use of `serialize` in ActiveRecord models. - class ActiverecordSerialize < RuboCop::Cop::Cop + class ActiveRecordSerialize < RuboCop::Cop::Cop include ModelHelpers MSG = 'Do not store serialized data in the database, use separate columns and/or tables instead'.freeze diff --git a/rubocop/rubocop.rb b/rubocop/rubocop.rb index 1a9bdd9325e..1e70314598a 100644 --- a/rubocop/rubocop.rb +++ b/rubocop/rubocop.rb @@ -1,6 +1,6 @@ require_relative 'cop/custom_error_class' require_relative 'cop/gem_fetcher' -require_relative 'cop/activerecord_serialize' +require_relative 'cop/active_record_serialize' require_relative 'cop/redirect_with_status' require_relative 'cop/polymorphic_associations' require_relative 'cop/project_path_helper' |