Skip to content

Instantly share code, notes, and snippets.

@epall
Created February 25, 2010 20:12
Show Gist options
  • Save epall/314980 to your computer and use it in GitHub Desktop.
Save epall/314980 to your computer and use it in GitHub Desktop.
class Group < ActiveRecord::Base
has_many :projects
has_many :personal_blogs
has_many :project_events, :through => :projects
has_many :blog_events, :through => :personal_blogs
has_many :events => # I want both project_events and blog_events
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment