Sha256: 525382365ae626f89084a9ea6bb4be313c695c83419c84b539ddeebccbae814c

Contents?: true

Size: 532 Bytes

Versions: 4

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

class Tramway::Conference::UnityDecorator < ::Tramway::Core::ApplicationDecorator
  class << self
    def collections
      [:all]
    end

    def show_attributes
      %i[title tagline logo address phone latitude longtitude url found_date email favicon]
    end

    def show_associations
      [:social_networks]
    end
  end

  delegate_attributes :title, :logo, :tagline, :address, :phone, :latitude, :longtitude, :url, :found_date, :email, :favicon

  decorate_association :social_networks
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tramway-conference-1.9.5.5 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.4 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.1 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5 app/decorators/tramway/conference/unity_decorator.rb