How to skip ActiveRecord callbacks?

rails-activerecord, ruby-on-rails

Solution

For Rails 2, but not Rails 3 you can use these:

object.send(:create_without_callbacks)
object.send(:update_without_callbacks)

Problem

Possible Duplicate: How can I avoid running ActiveRecord callbacks? I have model like this ``` class Vote < ActiveRecord::Base after_save :add_points_to_user ..... end ``` Is it possible to somehow force model to skip calling `add_points_to_user` when saved? Possibly something like `ActiveRecord#delete` vs `ActiveRecord#destroy`?

Original source

Related problems