1 2 3 4 5 6 7 8 9
class Bird < ActiveRecord::Base validates_presence_of :name attr_accessor :cancel_save_from_callback before_save :cancel_save_callback_method, :if => :cancel_save_from_callback def cancel_save_callback_method false end end