-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update so we only send the necessary data to media
Depending on the type of Media we try to create, it needs different data from the ProjectMedia object. Still, Media shouldn't need to know too much about ProjectMedia. So, we are deciding on what to send in ProjectMediaCreators, and only sending what is necessary: - I created a method that gets those media_arguments - Moved that and set_media_type under protected - Inside media it only gets that data and forwards it - There were a few changes to method's signatures (so tests were also updated) - Because there are a few differences between arguments needed, we are sending those as an additional_args hash
- Loading branch information
1 parent
e4d1c9d
commit 277347c
Showing
3 changed files
with
85 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters