X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Fship.rb;fp=vendor%2Frails%2Factiverecord%2Ftest%2Fmodels%2Fship.rb;h=0000000000000000000000000000000000000000;hb=36d9f3351a3b4e8159279445190e2287ffdea86c;hp=06759d64b8d18713df5f6d6188a25128cfbb6025;hpb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;p=feedcatcher.git diff --git a/vendor/rails/activerecord/test/models/ship.rb b/vendor/rails/activerecord/test/models/ship.rb deleted file mode 100644 index 06759d6..0000000 --- a/vendor/rails/activerecord/test/models/ship.rb +++ /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