Started again with Rails 4
[feedcatcher.git] / vendor / rails / activerecord / test / models / ship.rb
diff --git a/vendor/rails/activerecord/test/models/ship.rb b/vendor/rails/activerecord/test/models/ship.rb
deleted file mode 100644 (file)
index 06759d6..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-class Ship < ActiveRecord::Base
-  self.record_timestamps = false
-
-  belongs_to :pirate
-  has_many :parts, :class_name => 'ShipPart', :autosave => true
-
-  accepts_nested_attributes_for :pirate, :allow_destroy => true, :reject_if => proc { |attributes| attributes.empty? }
-
-  validates_presence_of :name
-end