aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-02-20 10:46:53 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2014-02-20 11:26:07 -0800
commit358802b850df595e071abe3b9d392225a0481d6b (patch)
tree4deb5dde6888be48aa4b4c569ab1332d8c321406 /activerecord/test/models
parent53d7b2ffe9ccdf2ded9898e20a947ea7da63566e (diff)
downloadrails-358802b850df595e071abe3b9d392225a0481d6b.tar.gz
rails-358802b850df595e071abe3b9d392225a0481d6b.tar.bz2
rails-358802b850df595e071abe3b9d392225a0481d6b.zip
Revert "context in validation goes through has many relationship"
This reverts commit 5e3d466d52fa4e9a42c3a1f8773a7c31da875e48.
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/pirate.rb8
-rw-r--r--activerecord/test/models/ship.rb8
2 files changed, 0 insertions, 16 deletions
diff --git a/activerecord/test/models/pirate.rb b/activerecord/test/models/pirate.rb
index 8510c596a7..7bb0caf44b 100644
--- a/activerecord/test/models/pirate.rb
+++ b/activerecord/test/models/pirate.rb
@@ -85,11 +85,3 @@ end
class DestructivePirate < Pirate
has_one :dependent_ship, :class_name => 'Ship', :foreign_key => :pirate_id, :dependent => :destroy
end
-
-class FamousPirate < ActiveRecord::Base
- self.table_name = 'pirates'
-
- has_many :famous_ships
-
- validates_presence_of :catchphrase, on: :conference
-end
diff --git a/activerecord/test/models/ship.rb b/activerecord/test/models/ship.rb
index 7a369b9d9a..3da031946f 100644
--- a/activerecord/test/models/ship.rb
+++ b/activerecord/test/models/ship.rb
@@ -17,11 +17,3 @@ class Ship < ActiveRecord::Base
false
end
end
-
-class FamousShip < ActiveRecord::Base
- self.table_name = 'ships'
-
- belongs_to :famous_pirate
-
- validates_presence_of :name, on: :conference
-end