Sha256: 1379d705430db5fa8d8e90b3f53d8f17aa55e9fd852a8cdd7c75424e6cb1f998

Contents?: true

Size: 448 Bytes

Versions: 21

Compression:

Stored size: 448 Bytes

Contents

require 'woople_theme_i18n'

module WoopleTheme
  module Dashboard
    class ExceptionPresenter < ExplicitDelegator
      enforce_definitions :name, :description, :completed_on

      def title
        source.name
      end

      def subtitle
        raise "not implemented"
      end

      def date
        WoopleThemeI18n.l(source.completed_on.to_date)
      end

      private

      def source
        __getobj__
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
woople-theme-0.6.11 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.10 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.9 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.8 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.7 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.6 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.5 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.4 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.3 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.2 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6.1 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.6 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.17 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.16 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.15 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.14 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.13 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.12 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.11 app/presenters/woople_theme/dashboard/exception_presenter.rb
woople-theme-0.5.10 app/presenters/woople_theme/dashboard/exception_presenter.rb