aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/bird.rb
blob: e61d48e6a5435ae453ffa6df612a5e95c7ea9d98 (plain) (blame)
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