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