def static_records_for_calculation(column_name, options={}, &block)#:nodoc:
      if columns_hash.has_key?(column_name.to_s)
        records = static_record_cache[:primary_key].values.collect(&(column_name.to_sym)).compact
        results = (options[:distinct]||options['distinct']) ? records.uniq : records
        block ? yield(results) : results
      else
        nil
      end
    end
def static_records_for_calculation(column_name, options={}, &block)#:nodoc:
      if columns_hash.has_key?(column_name.to_s)
        records = static_record_cache[:primary_key].values.collect(&(column_name.to_sym)).compact
        results = (options[:distinct]||options['distinct']) ? records.uniq : records
        block ? yield(results) : results
      else
        nil
      end
    end
def static_records_for_calculation ( column_name , options = { } , & block ) #:nodoc: if columns_hash . has_key? ( column_name . to_s ) records = static_record_cache [ :primary_key ] . values . collect ( ( column_name . to_sym ) ) . compact results = ( options [ :distinct ] || options [ 'distinct' ] ) ? records . uniq : records block ? yield ( results ) : results else nil end end
Return the array of results to calculate if they are available
Return the array of results to calculate if they are available