lib/rubocop/cop/rails/read_write_attribute.rb in rubocop-rails-2.14.2 vs lib/rubocop/cop/rails/read_write_attribute.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 checks for the use of the `read_attribute` or `write_attribute`
+ # Checks for the use of the `read_attribute` or `write_attribute`
# methods and recommends square brackets instead.
#
# If an attribute is missing from the instance (for example, when
# initialized by a partial `select`) then `read_attribute`
# will return nil, but square brackets will raise