Sha256: cc00a79b85b8cfa2b5bc32b3f3b8badb6367ce9c90da6f4a0468ab9b3e199390

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

db_config = YAML::load_file(File.expand_path("../database.yml", __FILE__))
ActiveRecord::Base.establish_connection(db_config)
ActiveRecord::Base.logger = @logger

class Fruit < ActiveRecord::Base
  belongs_to :tree
end

class Tree < ActiveRecord::Base
  attr_protected :size
  has_many :fruits, :after_add => :fruit_after_add
  belongs_to :main_fruit, :class_name => 'Fruit'

  def fruit_after_add(_)
  end
end

@rspec1 = @version.to_s[0, 1] == '2'
@transactions = true

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blueprints-1.0.1 spec/support/active_record/initializer.rb
blueprints-1.0.0 spec/support/active_record/initializer.rb