validate :validate_humanity_conflicts validates_presence_of :radius # ,
class AnyClass include ActiveSupport::Callbacks # already included by ActiveRecord::Base define_callbacks :after_something def after_something run_callbacks(:after_something) end end
class ChildClass < AnyClass after_something :eliminate_frags def eliminate_frags # do it true # to stop callback chain return false end end
after_something
Source: https://habr.com/ru/post/67696/
All Articles