Skip to content

Conversation

akalra
Copy link

@akalra akalra commented Oct 12, 2017

Hi --

Relatively minor pull request, but our admin console was littered with broken image tags for places where the image hadn't been populated yet.

This is a quick and dirty version. Ideally, I'd like to let the user decide what the 'blank field' experience is (perhaps by rendering a user-specified partial), but providing a path to the partial as an option didn't seem right. Wanted to run this past you before I spent too much more time on it.

Thanks!

Ankur

@picandocodigo
Copy link
Owner

Hi @akalra, thank you very much for this PR! I'll go into more review once I have some time, but I'll add some comments to the code in the meantime.


def blank?
data.blank?
end
Copy link
Owner

Choose a reason for hiding this comment

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

The Travis build is currently failing because of Rubocop. Can we delegate this so Rubocop is happy?
http://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Rails/Delegate
Thanks!

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.

2 participants