Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
specify Abingo namespace for experiment/alternatives associations so …
Browse files Browse the repository at this point in the history
…we don't get the constant error
  • Loading branch information
ryanb committed May 17, 2010
1 parent 454ff30 commit 1410ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/abingo/alternative.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Abingo::Alternative < ActiveRecord::Base
include Abingo::ConversionRate

belongs_to :experiment
belongs_to :experiment, :class_name => "Abingo::Experiment"
serialize :content

def self.calculate_lookup(test_name, alternative_name)
Expand Down
2 changes: 1 addition & 1 deletion lib/abingo/experiment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Abingo::Experiment < ActiveRecord::Base
include Abingo::Statistics
include Abingo::ConversionRate

has_many :alternatives, :dependent => :destroy
has_many :alternatives, :dependent => :destroy, :class_name => "Abingo::Alternative"
validates_uniqueness_of :test_name

def cache_keys
Expand Down

0 comments on commit 1410ceb

Please sign in to comment.