Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tabulatr/rails/active_record.rb

Class Method Summary collapse

Class Method Details

.tabulatr(relation, tabulatr_data_class = nil) ⇒ Object



29
30
31
32
# File 'lib/tabulatr/rails/active_record.rb', line 29

def self.tabulatr(relation, tabulatr_data_class = nil)
  tabulatr_data_class ||= "#{self.name}TabulatrData".constantize
  td = tabulatr_data_class.new(relation)
end