Sha256: c38ef57926c70631dd0c8b7ee0f0104b94f5d65ffa063a28f405173638deaec6

Contents?: true

Size: 397 Bytes

Versions: 30

Compression:

Stored size: 397 Bytes

Contents

require 'explicit_delegator'

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

30 entries across 30 versions & 1 rubygems

Version Path
woople-theme-0.8.1 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.8.0 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.27 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.26 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.25 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.24 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.23 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.22 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.21 app/presenters/woople_theme/dashboard/account_user_presenter.rb
woople-theme-0.6.20 app/presenters/woople_theme/dashboard/account_user_presenter.rb