Sha256: bd4bdb84e5a3d5e7a70c3974261ffab811ddc2210e5649fe8de5972e99541d0e
Contents?: true
Size: 327 Bytes
Versions: 2
Compression:
Stored size: 327 Bytes
Contents
class User < ActiveRecord::Base has_many :tasks has_many :activities, :class_name => 'Event' has_many :activity_references, :class_name => 'EventResource', :foreign_key => :resource_id, :conditions => ['resource_type = ?', 'User'] has_many :events, :through => :activity_references, :source => :event end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mockumentary-0.2.1 | spec/fixtures/app/models/user.rb |
mockumentary-0.2.0 | spec/fixtures/app/models/user.rb |