Class: FederalOffense::MessagesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- FederalOffense::MessagesController
- Defined in:
- app/controllers/federal_offense/messages_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
8 9 10 11 |
# File 'app/controllers/federal_offense/messages_controller.rb', line 8 def destroy .destroy redirect_to end |
#destroy_all ⇒ Object
13 14 15 16 |
# File 'app/controllers/federal_offense/messages_controller.rb', line 13 def destroy_all FederalOffense::Message.destroy_all redirect_to end |
#index ⇒ Object
18 19 |
# File 'app/controllers/federal_offense/messages_controller.rb', line 18 def index end |
#show ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/federal_offense/messages_controller.rb', line 21 def show if params[:raw] case params[:type] when "html" render html: .html_body when "text" render plain: .text_body else render .html? ? {html: .html_body} : {plain: .text_body} end end end |