Fix compability with rails 4.0

ActiveSupport callbacks changed in Rails 4.0: now it does not create \_run_*_callbacks methods.