app/models/c80_push/dealer.rb in c80_push-0.1.0.2 vs app/models/c80_push/dealer.rb in c80_push-0.1.0.3
- old
+ new
@@ -1,7 +1,8 @@
module C80Push
class Dealer < ActiveRecord::Base
has_and_belongs_to_many :regions
+ has_and_belongs_to_many :presets
has_many :offices, :dependent => :destroy
accepts_nested_attributes_for :offices,
:reject_if => lambda { |attributes|
!attributes.present?
},
\ No newline at end of file