I\'m trying to overwrite a getter method for an ActiveRecord model. I have an attribute called name in the model Category, and I\'d like to be able
If you using store attributes like this
store :settings, accessors: [:volume_adjustment]
or
using gems like
hstore_accessor gem link
So you ended up using store method on model, then to override those method you can't use self.read_attribute, you must use instead super like that:
def partner_percentage
super.to_i || 10
end