Sha256: 822da139ca6bc94740aafe0e0442a8879982684300b7f8eef7cc0c2e70aae223

Contents?: true

Size: 300 Bytes

Versions: 14

Compression:

Stored size: 300 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
    false
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
ibm_db-3.0.4-x86-mingw32 test/models/bird.rb
ibm_db-3.0.4 test/models/bird.rb
ibm_db-3.0.3-x86-mingw32 test/models/bird.rb
ibm_db-3.0.3 test/models/bird.rb
ibm_db-3.0.2-x86-mingw32 test/models/bird.rb
ibm_db-3.0.2 test/models/bird.rb
activejob-lock-0.0.2 rails/activerecord/test/models/bird.rb
ibm_db-3.0.1 test/models/bird.rb
ibm_db-3.0.1-x86-mingw32 test/models/bird.rb
activejob-lock-0.0.1 rails/activerecord/test/models/bird.rb
activerecord-nuodb-adapter-2.0.3 test/models/bird.rb
activerecord-nuodb-adapter-2.0 test/models/bird.rb
activerecord-nuodb-adapter-1.1 test/models/bird.rb
activerecord-nuodb-adapter-1.0.4 test/models/bird.rb