test/dummy/app/models/zone.rb in epom_rails-1.0.0 vs test/dummy/app/models/zone.rb in epom_rails-1.3.2
- old
+ new
@@ -1,3 +1,6 @@
class Zone < ActiveRecord::Base
+ belongs_to :publisher
+ has_many :placements
+ validates :publisher_id, presence: true
acts_as_zone belongs_to: [{:name => 'publisher', :epom_element => 'Site', :model => 'Publisher'}]
end