aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/fixtures/project.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2011-05-15 15:34:36 -0400
committerPrem Sichanugrist <s@sikachu.com>2012-03-13 14:55:44 -0400
commitf1637bf2bb00490203503fbd943b73406e043d1d (patch)
tree53bfe16edac03871486be9be4160ff8aa0e28216 /activeresource/test/fixtures/project.rb
parenta85714a673d2e06b923bd4eba443a3849d332cce (diff)
downloadrails-f1637bf2bb00490203503fbd943b73406e043d1d.tar.gz
rails-f1637bf2bb00490203503fbd943b73406e043d1d.tar.bz2
rails-f1637bf2bb00490203503fbd943b73406e043d1d.zip
Remove Active Resource source files from the repository
Dear Active Resource, It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository. I will miss you, @sikachu.
Diffstat (limited to 'activeresource/test/fixtures/project.rb')
-rw-r--r--activeresource/test/fixtures/project.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/activeresource/test/fixtures/project.rb b/activeresource/test/fixtures/project.rb
deleted file mode 100644
index 53de666601..0000000000
--- a/activeresource/test/fixtures/project.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# used to test validations
-class Project < ActiveResource::Base
- self.site = "http://37s.sunrise.i:3000"
- schema do
- string :email
- string :name
- end
-
- validates :name, :presence => true
- validates :description, :presence => false, :length => {:maximum => 10}
- validate :description_greater_than_three_letters
-
- # to test the validate *callback* works
- def description_greater_than_three_letters
- errors.add :description, 'must be greater than three letters long' if description.length < 3 unless description.blank?
- end
-end
-