Sha256: 3c6e0ec7ccc2746e1feea48c35efc8ddeccf1b962f58915b7034030c54cf2914
Contents?: true
Size: 421 Bytes
Versions: 4
Compression:
Stored size: 421 Bytes
Contents
class Activity::Proposal < ActiveRecord::Base include ExtensibleObjectHelper include ActivityTypeModelHelper validates_presence_of :label validates_presence_of :proposed_on def name type_quick_namer '%s for %s on %s', label, client end handle_extensions end Activity.class_eval do has_one :proposal, :class_name => 'Activity::Proposal', :dependent => :destroy, :foreign_key => :activity_id end
Version data entries
4 entries across 4 versions & 1 rubygems