Class: Avo::ProfilePhotoComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/avo/profile_photo_component.rb

Constant Summary

Constants included from Concerns::FindAssociationField

Concerns::FindAssociationField::ASSOCIATIONS

Instance Method Summary collapse

Methods inherited from BaseComponent

#has_with_trial

Methods included from Concerns::FindAssociationField

#find_association_field

Instance Method Details

#render?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'app/components/avo/profile_photo_component.rb', line 6

def render?
  @profile_photo.present? && @profile_photo.visible_in_current_view?
end