add selector for distributor in checkout. Not saving relation as yet.

This commit is contained in:
Andrew Spinks
2012-04-07 16:34:27 +10:00
parent 3f1ed0ca06
commit b2b8bd0112
5 changed files with 12 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
module Spree
class Distributor < ActiveRecord::Base
set_table_name 'distributors'
validates :name, :pickup_address, :presence => true
end
end