Class: LetterBomb::MailersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- LetterBomb::MailersController
- Defined in:
- app/controllers/letter_bomb/mailers_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'app/controllers/letter_bomb/mailers_controller.rb', line 5 def index @mailer_classes = LetterBomb::Preview.classes end |
#show ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/letter_bomb/mailers_controller.rb', line 9 def show class_name = params[:mailer_class] action_name = params[:mailer_action] @action = class_name.constantize.preview_action( action_name, format: params[:format] ) respond_to do |format| format.html format.text { render formats: [:html], content_type: 'text/html' } end end |