This rule encourages the use of self instead of read_attribute for reading attributes.
read_attribute is an older method in Rails, which can make your code harder to read and understand, especially for those who are not familiar with older Rails methods. Using self to access the model’s attributes makes the code cleaner and easier to read.
To adhere to this rule, replace instances of read_attribute(:attribute_name) with self[:attribute_name]. This practice not only improves readability but also ensures your code is consistent with the latest Rails conventions.