aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/wholesale_product.rb
diff options
context:
space:
mode:
authorGabriel Horner <gabriel.horner@gmail.com>2011-07-24 16:36:06 -0400
committerGabriel Horner <gabriel.horner@gmail.com>2011-07-24 16:36:06 -0400
commitf5e4d13270dbce2bb880ef6529da68aaee017910 (patch)
treecf096170ba99ed75c7444a4aadf33e859549ed9f /activerecord/test/models/wholesale_product.rb
parent6e3c0a5d9a22a4a08628b3f72a6b4072e0a23405 (diff)
downloadrails-f5e4d13270dbce2bb880ef6529da68aaee017910.tar.gz
rails-f5e4d13270dbce2bb880ef6529da68aaee017910.tar.bz2
rails-f5e4d13270dbce2bb880ef6529da68aaee017910.zip
use existing model for testing Base.create with #after_initialize
Diffstat (limited to 'activerecord/test/models/wholesale_product.rb')
-rw-r--r--activerecord/test/models/wholesale_product.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/test/models/wholesale_product.rb b/activerecord/test/models/wholesale_product.rb
deleted file mode 100644
index 5c6c15391c..0000000000
--- a/activerecord/test/models/wholesale_product.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-class WholesaleProduct < ActiveRecord::Base
-
- after_initialize :set_prices
-
- def set_prices
- self.msrp = 2 * wholesale if wholesale
- end
-
-end