Sha256: 2da72662a144128425ab5b6092605b7b9a399840bdc9ef4f4f455411df5c6e8f

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

class ::Tramway::Profiles::SocialNetworkDecorator < ::Tramway::ApplicationDecorator
  class << self
    def collections
      [:all]
    end
  end

  delegate :title, to: :object

  def name
    "#{object.network_name} | #{object.title}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-profiles-1.4.1.4 app/decorators/tramway/profiles/social_network_decorator.rb
tramway-profiles-1.4.1.3 app/decorators/tramway/profiles/social_network_decorator.rb
tramway-profiles-1.4.1.2 app/decorators/tramway/profiles/social_network_decorator.rb