Sha256: ce422aa0526e1f8af795a22ae7b5303f63654ece69839faac053035fdcce23e5

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

class Mg::Report < ActiveRecord::Base
  set_table_name :mg_reports
  
  has_many :mg_report_items, :class_name => "Mg::ReportItem", :foreign_key => "mg_report_id", :order => "mg_report_items.order"
  has_many :reportables, :through => :mg_report_items
  
  validates_presence_of :title
  validates_presence_of :delivery_set #can be nil
  #validates_presence_of :recipients
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mountain-goat-1.0.5 lib/mountain-goat/models/mg/report.rb
mountain-goat-1.0.4 lib/mountain-goat/models/mg/report.rb
mountain-goat-1.0.3 lib/mountain-goat/models/mg/report.rb