Froze rails gems
[depot.git] / vendor / rails / actionpack / test / fixtures / company.rb
diff --git a/vendor/rails/actionpack/test/fixtures/company.rb b/vendor/rails/actionpack/test/fixtures/company.rb
new file mode 100644 (file)
index 0000000..cbbd0ed
--- /dev/null
@@ -0,0 +1,10 @@
+class Company < ActiveRecord::Base
+  has_one :mascot
+  attr_protected :rating
+  set_sequence_name :companies_nonstd_seq
+
+  validates_presence_of :name
+  def validate
+    errors.add('rating', 'rating should not be 2') if rating == 2
+  end  
+end
\ No newline at end of file