app/decorators/friendship_decorator.rb
# Renders the sharing options for verbose display.
Renders the sharing options for verbose display.
Renders the sharing options for verbose display .
def to_verbose_sharing
    "#{friend.get_full_name} #{ I18n.t('social.shares') }: " <<
    [
      ( shares_passages  ? "#{ I18n.t('social.passages') }"  : '' ),
      ( shares_trainings ? "#{ I18n.t('social.trainings') }" : '' ),
      ( shares_calendars ? "#{ I18n.t('social.calendars') }" : '' )
    ].join(', ')
  end
def to_verbose_sharing "#{friend.get_full_name} #{ I18n.t('social.shares') }: " << [ ( shares_passages ? "#{ I18n.t('social.passages') }" : '' ) , ( shares_trainings ? "#{ I18n.t('social.trainings') }" : '' ) , ( shares_calendars ? "#{ I18n.t('social.calendars') }" : '' ) ] . join ( ', ' ) end
Renders the sharing options for verbose display.
Renders the sharing options for verbose display .