module Believer::Counting::ClassMethods

Public Instance Methods

counter_columns() click to toggle source

Returns all the counter columns @return an array of Column

# File lib/believer/counting.rb, line 10
def counter_columns
  columns_with_type(:counter)
end
is_counter_table?() click to toggle source

Is this a model class with counter columns?

# File lib/believer/counting.rb, line 15
def is_counter_table?
  counter_columns.any?
end