Module: ActiveWarehouse::SlowlyChangingDimension::InstanceMethods

Defined in:
lib/active_warehouse/dimension/slowly_changing_dimension.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



66
67
68
# File 'lib/active_warehouse/dimension/slowly_changing_dimension.rb', line 66

def self.included(base) # :nodoc:
  base.extend ClassMethods
end

Instance Method Details

#versionsObject



70
71
72
73
74
75
# File 'lib/active_warehouse/dimension/slowly_changing_dimension.rb', line 70

def versions
  self.class.find(:all,
      :conditions => ["#{self.class.identifier} = ?", self.send(identifier)],
      :with_older => true,
      :order => "#{self.class.effective_date_attribute} asc")
end