Skip to content

Instantly share code, notes, and snippets.

@r38y
Created April 5, 2014 21:37
Show Gist options
  • Save r38y/9998378 to your computer and use it in GitHub Desktop.
Save r38y/9998378 to your computer and use it in GitHub Desktop.
class NullPhoto
def file
@file = OpenStruct.new(
url: 'https://dossi-prod.s3.amazonaws.com/default-avatar.png'
)
end
# is this kosher?
def blank?
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment