Sha256: 3c6499371564eba737819b19b61dec1e524a81ff0b560f1031ed75d299d52eb0
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 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" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mountain-goat-1.0.2 | lib/mountain-goat/models/mg/report.rb |
mountain-goat-1.0.1 | lib/mountain-goat/models/mg/report.rb |