Sha256: e0d04d22463848a78413515fc69ce796f76e752674f8d9823bf5824be2fee0eb

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

require 'explicit_delegator'

module WoopleTheme
  module Dashboard
    class AccountUserPresenter < ExplicitDelegator
      enforce_definitions :id, :image, :name, :member_dashboard_path, :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

4 entries across 4 versions & 1 rubygems

Version Path
woople-theme-0.6.19 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.18 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.17 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.14 app/presenters/woople_theme/dashboard/account_user_presenter.rb