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

ActiveFedora::File.mime_type should be updatable #1035

Merged
merged 1 commit into from
Mar 24, 2016

Conversation

cjcolvar
Copy link
Member

Squash and rebase of file_mime_types branch by @tpendragon

@jcoyne
Copy link
Member

jcoyne commented Mar 23, 2016

@cjcolvar It looks like rubocop found some issues with your changes. Can you run bundle exec rubocop -a on the code and commit the changes?

@@ -45,7 +46,7 @@ def save

def changed_attributes
super.tap do |changed|
changed['type'] = true if type.present?
changed['type'] = true if type.present && new_record?
Copy link
Member

Choose a reason for hiding this comment

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

It looks like the method is missing a question mark present?

Squash and rebase of file_mime_types branch by @tpendragon
@cjcolvar
Copy link
Member Author

Thanks @jcoyne. Everything is green now. This will fix #890.

@jcoyne jcoyne merged commit 40aaee9 into master Mar 24, 2016
@jcoyne jcoyne deleted the file_mime_types_cjcolvar branch March 24, 2016 17:09
@jcoyne
Copy link
Member

jcoyne commented Mar 28, 2016

@cjcolvar I'm going to revert this commit, because it puts FCrepo 4.5.0 into a bad state. See samvera-deprecated/curation_concerns#693

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.

3 participants