Sha256: f26605041ecb1284c825e36f384b6d68b380bae60cac41615e241a2c30a95038

Contents?: true

Size: 534 Bytes

Versions: 6

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

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

    def show_attributes
      [ :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

6 entries across 6 versions & 1 rubygems

Version Path
tramway-conference-1.9.4 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.3.1 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.3 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.2.2 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.2.1 app/decorators/tramway/conference/unity_decorator.rb
tramway-conference-1.9.2 app/decorators/tramway/conference/unity_decorator.rb