Forum: Ruby on Rails Overriding save breaks increment!/decrement!

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
429500a5a54600958c9c7ac032a37f66?d=identicon&s=25 Joe (Guest)
on 2006-03-10 20:29
Is overriding ActiveRecord#save verboten? Doing this causes increment!
and decrement! to break (1 for 0 argument error):

def save
  create_or_update
  # also tried 'super'

  # do stuff
end


Joe
This topic is locked and can not be replied to.