Sha256: 0dece054b8a76dba856577f01255dc7ba80aca55854187fa19c553b7a0d79d53

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 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

8 entries across 8 versions & 1 rubygems

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