Sha256: a8e74e86701f3e325ae0be8bbd6a5c2a9a7e4c3a1f67340d78db770f24697e76

Contents?: true

Size: 285 Bytes

Versions: 4

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

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

  delegate :title, to: :object

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tramway-profiles-1.4.1.1 app/decorators/tramway/profiles/social_network_decorator.rb
tramway-profiles-1.4.1 app/decorators/tramway/profiles/social_network_decorator.rb
tramway-profiles-1.4.0.1 app/decorators/tramway/profiles/social_network_decorator.rb
tramway-profiles-1.4 app/decorators/tramway/profiles/social_network_decorator.rb