Permalink
Browse files

try to fix rails 3.1 issue perhaps related to abstract class declarat…

…ion.
  • Loading branch information...
1 parent 3ed6952 commit 4fbe7addadd55ce028f3ebd24725e463e1e0df95 @kookster kookster committed Oct 27, 2011
Showing with 6 additions and 1 deletion.
  1. +2 −0 lib/active_warehouse/dimension.rb
  2. +4 −1 lib/active_warehouse/fact.rb
@@ -12,6 +12,8 @@ module ActiveWarehouse #:nodoc
class Dimension < ActiveRecord::Base
include ActiveWarehouse::HierarchicalDimension
include ActiveWarehouse::SlowlyChangingDimension
+
+ self.abstract_class = true
after_save :expire_value_tree_cache
@@ -6,6 +6,9 @@ module ActiveWarehouse #:nodoc
# dimensions. All measurements in a fact
# table must be at the same grain.
class Fact < ActiveRecord::Base
+
+ self.abstract_class = true
+
class << self
# Array of AggregateField instances
attr_accessor :aggregate_fields
@@ -20,7 +23,7 @@ class << self
# Array of belongs_to +Reflection+ instances that represent the
# dimensions for this fact.
attr_accessor :dimension_relationships
-
+
# Acts as an alias for +belongs_to+, yet marks this relationship
# as a dimension. You must call +dimension+ instead of +belongs_to+.
# Accepts same options as +belongs_to+.

0 comments on commit 4fbe7ad

Please sign in to comment.