lib/active_reporting/dimension.rb
# Determins the type of the dimension
#
# A dimension type is either:
#
# * standard - The dimension is a relation to the fact model's model
# * degenerate - The dimension is the model's attribute
#
# @return [Symbol]
Determins the type of the dimension
A dimension type is either.

The dimension is a relation to the fact model's model
degenerate - The dimension is the model's attribute
Determins the type of the dimension A dimension type is either . The dimension is a relation to the fact model ' s model degenerate - The dimension is the model ' s attribute
def type
      @type ||= if model.column_names.include?(@name)
                  TYPES[:degenerate]
                elsif association
                  TYPES[:standard]
                else
                  raise UnknownDimension, "Dimension '#{@name}' not found on fact model '#{@fact_model}'"
                end
    end
def type @type ||= if model . column_names . include? ( @name ) TYPES [ :degenerate ] elsif association TYPES [ :standard ] else raise UnknownDimension , "Dimension '#{@name}' not found on fact model '#{@fact_model}'" end end
Determins the type of the dimension
A dimension type is either:
Determins the type of the dimension A dimension type is either :
None
Symbol