Class: ProfilePresenter
- Inherits:
-
ExplicitDelegator
- Object
- ExplicitDelegator
- ProfilePresenter
- Defined in:
- app/presenters/profile_presenter.rb
Constant Summary collapse
- DEFAULT_IMAGE =
'woople-theme/missing-profile.png'
- MISSING_WOOPLE_IMAGE =
'/assets/retina_thumb/missing.png'
Instance Method Summary collapse
Methods inherited from ExplicitDelegator
enforce_definitions, #enforced_methods, #ensure_defined, #initialize
Constructor Details
This class inherits a constructor from ExplicitDelegator
Instance Method Details
#image ⇒ Object
9 10 11 |
# File 'app/presenters/profile_presenter.rb', line 9 def image normalized(profile.image) end |
#sections ⇒ Object
13 14 15 |
# File 'app/presenters/profile_presenter.rb', line 13 def sections @sections ||= ThemePresentation.wrap_collection(profile.sections, ProfileSectionPresenter) end |