lib/appstats/sub_result.rb in appstats-0.23.5 vs lib/appstats/sub_result.rb in appstats-0.24.0
- old
+ new
@@ -1,7 +1,7 @@
module Appstats
class SubResult < ActiveRecord::Base
- set_table_name "appstats_sub_results"
+ self.table_name = "appstats_sub_results"
establish_connection "appstats_#{Rails.env}" if configurations.keys.include?("appstats_#{Rails.env}")
attr_accessible :context_filter, :count, :ratio_of_total
belongs_to :result, :class_name => "Appstats::Result", :foreign_key => "appstats_result_id"
\ No newline at end of file