Sha256: 5313492c4a2f8adc3da47bf374fa9a6149700805908e09c8b0ac1a062176739c

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

require 'explicit_delegator'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
woople-theme-0.6.11 app/presenters/woople_theme/dashboard/account_user_presenter.rb