lib/conductor/experiment/weight.rb in conductor-0.7.2 vs lib/conductor/experiment/weight.rb in conductor-0.8.1

- old
+ new

@@ -10,6 +10,9 @@ # updated_at :datetime # class Conductor::Experiment::Weight < ActiveRecord::Base set_table_name "conductor_weighted_experiments" + + named_scope :for_group, lambda { |group_name| { :conditions => ['group_name = ?',group_name] }} + named_scope :with_alternative, lambda { |alternative| { :conditions => ['alternative = ?',alternative] }} end