Skip to content

Fixing organization logo to work with ActiveStorage#460

Merged
seanmarcia merged 1 commit into
rubyforgood:masterfrom
davidsth:459-fix-active-storage-logo
Aug 12, 2018
Merged

Fixing organization logo to work with ActiveStorage#460
seanmarcia merged 1 commit into
rubyforgood:masterfrom
davidsth:459-fix-active-storage-logo

Conversation

@davidsth
Copy link
Copy Markdown
Collaborator

Resolves #459

Description

There was a bug where retrieving Organization logos were throwing errors because the path method did not exist on the new ActiveStorage::Blob object. The code has been refactored to retrieve the base diaper app logo if the organization does not have a logo and use the organization provided one otherwise.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Added tests for the logo_path method on the organization_spec.rb

@davidsth davidsth requested a review from seanmarcia August 11, 2018 05:38
Copy link
Copy Markdown
Member

@seanmarcia seanmarcia left a comment

Choose a reason for hiding this comment

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

Looks great! I like moving the logic out of the helper into the organization.

I think the only thing that needs to be fixed is the one rubocop violation and this will be good to merge!

https://travis-ci.org/rubyforgood/diaper/builds/414787549

@seanmarcia seanmarcia merged commit 78374fa into rubyforgood:master Aug 12, 2018
@seanmarcia
Copy link
Copy Markdown
Member

Awesome! Thanks so much!

@davidsth davidsth deleted the 459-fix-active-storage-logo branch August 12, 2018 16:09
@armahillo armahillo added the Repo First-timer This Pull Request is a user's first contribution to Diaperbase label May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Repo First-timer This Pull Request is a user's first contribution to Diaperbase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Active Storage Isn't Playing Nice with Prawn-Rails

3 participants