You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you cannot override the generated methods and access super ie:
```ruby
monetize :price_cents
def price=(value)
# stuff
super # NoMethodError
end
```
This happens because the method is defined on the class directly so their is no super method to call. A solution today is to create an alias (`alias :old_price= :price=`) before overriding the method as is recommending in issue #507.
Instead, a new module can be created, included into the class, and the methods defined on it allowing `super` to work as expected.
0 commit comments