Filipe Abreu
Results
2
comments of
Filipe Abreu
Sorry to revisit this, but I recently went into the same problem. I agree we should we remove this from the styleguide. This rule seems kind of random and arbitrary...
@strand this is actually very Rails specific, not language... I always prefered the usage of `read_attribute`. I have solved this issue by disabling this cop. Even `[]` uses `read_attribute`. https://github.com/rails/rails/blob/057ba1280b1a5a33446387b286adb4a75acdebe4/activerecord/lib/active_record/attribute_methods.rb#L384