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
Is overriding ActiveRecord#save verboten? Doing this causes increment!
and decrement! to break (1 for 0 argument error):
def save
create_or_update
end
Joe
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs