-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rss feed of projects #115
Rss feed of projects #115
Conversation
This seems to be a real-life scenario. Also fixed deprecations when we were passing episode instead of episode_id
@@ -19,7 +19,8 @@ class Project < ActiveRecord::Base | |||
|
|||
has_many :comments, as: :commentable, dependent: :destroy | |||
|
|||
has_and_belongs_to_many :episodes | |||
has_many :episode_project_associations | |||
has_many :episodes, through: :episode_project_associations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change the association type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need the intermediate object — to store created_at
and sort by it.
This allows me to add existing project on top of the RSS feed, if it was just added in the episode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎆 |
Closes #98