Sha256: 7147c252d0ee83b915bcecd91ed8808fd845348c16eb13986c7deaeac891078c
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
class Mg::ReportItem < ActiveRecord::Base set_table_name :mg_report_items belongs_to :report, :class_name => "Mg::Report" belongs_to :reportable, :polymorphic => true belongs_to :pivot, :polymorphic => true validates_presence_of :report_id validates_presence_of :reportable_id validates_presence_of :reportable_type validates_presence_of :order def chart_title return self.reportable.reportable_title(pivot) end def chart_items return self.reportable.reportable_chart_items(self.pivot) end def gerbil_chart return self.reportable.reportable_gerbil_chart(self.pivot) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mountain-goat-1.0.0 | lib/mountain-goat/models/mg/report_item.rb |