Sha256: 075052acb7f4e2891f368e41660181d01b0502b20c3be219f1f8f238892ae939

Contents?: true

Size: 526 Bytes

Versions: 7

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

class Tramway::Conference::UnityDecorator < ::Tramway::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

7 entries across 7 versions & 1 rubygems

Version Path
tramway-conference-1.9.5.12 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.11 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.10 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.9 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.8 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.7 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.5.6 app/decorators/tramway/conference/unity_decorator.rb