Skip to content

Instantly share code, notes, and snippets.

@worace worace/image_item.rb
Created May 10, 2012

Embed
What would you like to do?
text_item.rb
class LinkItem < ActiveRecord::Base
belongs_to :user
end
class TextItem < ActiveRecord::Base
belongs_to :user
end
class User < ActiveRecord::Base
has_many :link_items
has_many :image_items
end
@j3j3

This comment has been minimized.

Copy link

commented May 16, 2012

{comment}

@j3j3

This comment has been minimized.

Copy link

commented May 16, 2012

I'm inside you.

@j3j3

This comment has been minimized.

Copy link

commented May 16, 2012

What an amazing gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.