lib/rubocop/cop/rails/arel_star.rb in rubocop-rails-2.14.2 vs lib/rubocop/cop/rails/arel_star.rb in rubocop-rails-2.15.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module RuboCop
module Cop
module Rails
- # This cop prevents usage of `"*"` on an Arel::Table column reference.
+ # Prevents usage of `"*"` on an Arel::Table column reference.
#
# Using `arel_table["*"]` causes the outputted string to be a literal
# quoted asterisk (e.g. <tt>`my_model`.`*`</tt>). This causes the
# database to look for a column named <tt>`*`</tt> (or `"*"`) as opposed
# to expanding the column list as one would likely expect.