Sha256: a6e5e81a05fde4e3c411b27b3d022feeacd7c62d48f7124644bd78cc2aa3fbee

Contents?: true

Size: 221 Bytes

Versions: 7

Compression:

Stored size: 221 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
epom_rails-1.4.4 test/dummy/app/models/zone.rb
epom_rails-1.4.2 test/dummy/app/models/zone.rb
epom_rails-1.4.1 test/dummy/app/models/zone.rb
epom_rails-1.4.0 test/dummy/app/models/zone.rb
epom_rails-1.3.6 test/dummy/app/models/zone.rb
epom_rails-1.3.5 test/dummy/app/models/zone.rb
epom_rails-1.3.2 test/dummy/app/models/zone.rb