lib/rflow/configuration/component.rb in rflow-0.0.5 vs lib/rflow/configuration/component.rb in rflow-1.0.0a1

- old
+ new

@@ -4,24 +4,23 @@ class RFlow class Configuration class Component < ConfigDB include UUIDKeyed include ActiveModel::Validations - + class ComponentInvalid < StandardError; end class ComponentNotFound < StandardError; end serialize :options, Hash + belongs_to :shard, :primary_key => 'uuid', :foreign_key => 'shard_uuid' has_many :input_ports, :primary_key => 'uuid', :foreign_key => 'component_uuid' has_many :output_ports, :primary_key => 'uuid', :foreign_key => 'component_uuid' #TODO: Get this to work #has_many :input_connections, :through => :input_ports, :source => :input_connections #has_many :output_connections, :through => :output_ports, :source => :output_connection - validates_uniqueness_of :name - end end end