Skip to content

Commit

Permalink
Rename a mixin module
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Oct 7, 2023
1 parent cbdc126 commit ebfb3ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Cop
# This module automatically detect an adapter from `development` environment
# in `config/database.yml` or the environment variable `DATABASE_URL`
# when the `Database` option is not set.
module DatabaseTypeResolver
module DatabaseTypeResolvable
MYSQL = 'mysql'
POSTGRESQL = 'postgresql'

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rails/bulk_change_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module Rails
# end
# end
class BulkChangeTable < Base
include DatabaseTypeResolver
include DatabaseTypeResolvable

MSG_FOR_CHANGE_TABLE = <<~MSG.chomp
You can combine alter queries using `bulk: true` options.
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rails_cops.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative 'mixin/active_record_helper'
require_relative 'mixin/active_record_migrations_helper'
require_relative 'mixin/class_send_node_helper'
require_relative 'mixin/database_type_resolver'
require_relative 'mixin/database_type_resolvable'
require_relative 'mixin/enforce_superclass'
require_relative 'mixin/index_method'
require_relative 'mixin/migrations_helper'
Expand Down

0 comments on commit ebfb3ef

Please sign in to comment.