Sha256: 660eff3f7523a819890a6beb18577597db525b520962b442dd04ab3079d68b36

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

class Zone < ActiveRecord::Base
	has_many	:user_zones
	has_many	:controller_zones
	
	has_many	:groups, :through => :user_zones
	has_many	:control_systems, :through => :controller_zones
	
	has_many :settings, :as => :object,	:dependent => :destroy
	
	
	protected
	
	
	validates_presence_of :name
	validates_uniqueness_of :name
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
automate-em-0.0.4 app/models/zone.rb
automate-em-0.0.3 app/models/zone.rb
automate-em-0.0.2 app/models/zone.rb
automate-em-0.0.1 app/models/zone.rb