Sha256: add99215a1618c5487bf2815a3a39b8e59bee519837de050902d2dc3983f8024

Contents?: true

Size: 329 Bytes

Versions: 34

Compression:

Stored size: 329 Bytes

Contents

module WoopleTheme
  module Dashboard
    class UserAndStatusPresenter < ExplicitDelegator
      enforce_definitions :image, :name, :status_color, :status_description

      def image
        @delegate.image == '/assets/retina_thumb/missing.png' ? 'woople-theme/missing-profile.png' : @delegate.image
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
woople-theme-0.8.1 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.8.0 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.27 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.26 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.25 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.24 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.23 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.22 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.21 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.20 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.19 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.18 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.17 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb
woople-theme-0.6.13 app/presenters/woople_theme/dashboard/user_and_status_presenter.rb