Sha256: 958827f5c27c9bb23525ae09d0bf0cbc5e2298b9b358ece4c73f4f38708f116e

Contents?: true

Size: 320 Bytes

Versions: 6

Compression:

Stored size: 320 Bytes

Contents

class Bird < ActiveRecord::Base
  belongs_to :pirate
  validates_presence_of :name

  accepts_nested_attributes_for :pirate

  attr_accessor :cancel_save_from_callback
  before_save :cancel_save_callback_method, :if => :cancel_save_from_callback
  def cancel_save_callback_method
    throw(:abort)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/models/bird.rb
ibm_db-5.1.0-x86-mingw32 test/models/bird.rb
ibm_db-5.0.5-x86-mingw32 test/models/bird.rb
ibm_db-5.0.4-x86-mingw32 test/models/bird.rb
ibm_db-5.0.3-x86-mingw32 test/models/bird.rb
ibm_db-5.0.2-x86-mingw32 test/models/bird.rb