ulmic/tramway-dev

View on GitHub
tramway-profiles/app/decorators/tramway/profiles/social_network_decorator.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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