Class: Emailbutler::UiController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Emailbutler::UiController
show all
- Includes:
- Pagy::Backend
- Defined in:
- app/controllers/emailbutler/ui_controller.rb
Instance Method Summary
collapse
Instance Method Details
#index ⇒ Object
13
14
15
|
# File 'app/controllers/emailbutler/ui_controller.rb', line 13
def index
@summary = ::Emailbutler.count_messages_by_status
end
|
#show ⇒ Object
17
18
19
|
# File 'app/controllers/emailbutler/ui_controller.rb', line 17
def show
@pagy, @messages = pagy(::Emailbutler.find_messages_by(search_condition))
end
|