My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
65
attachment: empty_shipping_weight_price.patch
(646 bytes)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/order_shipping_weight.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/order_shipping_weight.rb (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/models/order_shipping_weight.rb (working copy)
@@ -6,4 +6,8 @@
#
class OrderShippingWeight < ActiveRecord::Base
belongs_to :order_shipping_type
+
+ validates_presence_of :price
+ validates_numericality_of :price
+
end
\ No newline at end of file
Powered by
Google Project Hosting