Sha256: ad7d9aeeadf7f7ee17f6a8b3cc21454028d38907fbb4419af8033108b6bdbbd7

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 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]
    end

    def show_associations
      [:social_networks]
    end
  end

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

  decorate_association :social_networks
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tramway-conference-1.9.4.4 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.4.3 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.4.2 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.4.1 app/decorators/tramway/conference/unity_decorator.rb