Sha256: 6091e5743020f9b1ad598ce9329997f2fd1cfb6fa61b53574eb2e32c7fe45c96

Contents?: true

Size: 784 Bytes

Versions: 53

Compression:

Stored size: 784 Bytes

Contents

class Auth::System::Branch

	include Auth::Concerns::SystemConcern
	embeds_many :definitions, :class_name => "Auth::System::Definition"
	embeds_many :units, :class_name => "Auth::System::Unit"
	embedded_in :level, :class_name => "Auth::System::Level"
	field :product_bunch, type: String
	field :merge_output, type: Boolean
	field :input_object_ids, type: Array, default: []
	
	def add_cart_items
		self.definitions.each do |definition|
			definition.add_cart_items(self.input_object_ids.map{|c| c = Auth.configuration.cart_item_class.constantize.find(c)})
		end
	end

	def do_schedule_queries
		self.definitions.each do |definition|
			definition.find_input_object_id_common_schedules
			definition.apply_time_specifications
			definition.apply_location_specifications
		end
	end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/models/auth/system/branch.rb
wordjelly-auth-1.5.9 app/models/auth/system/branch.rb
wordjelly-auth-1.5.8 app/models/auth/system/branch.rb
wordjelly-auth-1.5.7 app/models/auth/system/branch.rb
wordjelly-auth-1.5.6 app/models/auth/system/branch.rb
wordjelly-auth-1.5.5 app/models/auth/system/branch.rb
wordjelly-auth-1.5.4 app/models/auth/system/branch.rb
wordjelly-auth-1.5.3 app/models/auth/system/branch.rb
wordjelly-auth-1.5.2 app/models/auth/system/branch.rb
wordjelly-auth-1.5.1 app/models/auth/system/branch.rb
wordjelly-auth-1.5.0 app/models/auth/system/branch.rb
wordjelly-auth-1.4.9 app/models/auth/system/branch.rb
wordjelly-auth-1.4.8 app/models/auth/system/branch.rb
wordjelly-auth-1.4.7 app/models/auth/system/branch.rb
wordjelly-auth-1.4.6 app/models/auth/system/branch.rb
wordjelly-auth-1.4.5 app/models/auth/system/branch.rb
wordjelly-auth-1.4.4 app/models/auth/system/branch.rb
wordjelly-auth-1.4.3 app/models/auth/system/branch.rb
wordjelly-auth-1.4.2 app/models/auth/system/branch.rb
wordjelly-auth-1.4.0 app/models/auth/system/branch.rb