Sha256: 398e093554ada539b6c2918052d434cd316fcf390da33615defc50a2f04e3b45

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

module Emailbutler
  module Ui
    class DashboardController < Emailbutler::UiController
      def index
        @summary = Emailbutler.count_messages_by_status
      end

      def show
        @messages = Emailbutler.find_messages_by(status: params[:id])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emailbutler-0.3.0 app/controllers/emailbutler/ui/dashboard_controller.rb