Skip to content
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

Add publications model and management #151

Merged
merged 2 commits into from
Dec 2, 2019
Merged

Conversation

simaob
Copy link
Contributor

@simaob simaob commented Dec 2, 2019

No description provided.

@simaob simaob requested a review from tsubik December 2, 2019 14:22
Copy link
Collaborator

@tsubik tsubik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comments.

class PublicationDecorator < Draper::Decorator
delegate_all

def title_link
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add file link here too. Take a look at DataUploadDecorator, on Publications show page there should be downloadable link for the file.

@tsubik
Copy link
Collaborator

tsubik commented Dec 2, 2019

We gonna have to add more validation rules for things like thumbnails, like image minimum size. Also it could be processed by ImageMagick to a valid size after uploading. This is for other story though.

@simaob
Copy link
Contributor Author

simaob commented Dec 2, 2019

Yeah, I'll add a task about validations, and added the suggested file_link.

@simaob simaob merged commit 794331d into develop Dec 2, 2019
@simaob simaob deleted the feature/import-publications branch December 2, 2019 16:03
@tsubik
Copy link
Collaborator

tsubik commented Dec 2, 2019

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants