Rails Email Preview Versions Save

Preview and edit app mailer templates in Rails.

v2.2.3

1 year ago
  • Fixes Rails 7 compatibility. #88 #90

v2.2.2

4 years ago
  1. Fixes deprecation warnings on Rails 6.
  2. Fixes unintentional processing of email HTML as ERB. RCE vulnerability if preview body contains user input. #82

v2.2.1

5 years ago

Fixes support for Rails <5.2 (regression introduced in v2.2.0).

v2.2.0

5 years ago

Adds CSP nonce to inline script tags if CSP is enabled on Rails v5.2+.

v2.0.1

8 years ago

Fixes the wrong Rails dependency in the gemspec. v2.0.0 yanked.

v2.0.0

8 years ago

Drops support for all versions of Rails below 4.2. Fixes Rails 5 deprecation warnings.

v1.0.3

8 years ago

Rails 5 support.

v1.0.2

8 years ago

Added a couple of variables for further default theme customization.

v1.0.1

8 years ago
  • Adds RailsEmailPreview.find_preview_classes(dir) that also finds classes in subdirectories.

  • Changes the default initializer to load classes like this:

    RailsEmailPreview.preview_classes =
        RailsEmailPreview.find_preview_classes('app/mailer_previews')
    

v1.0.0

8 years ago

Breaking: REP now uses a lightweight default theme with no dependencies by default.

If you are using REP with the Bootstrap 3 theme, here are the configuration changes you need to make:

  • @import "rails_email_preview/bootstrap3" instead of rails_email_preview/application.

  • Add the following styles configuration to your REP initializer:

    config.style.merge!(
        btn_active_class_modifier: 'active',
        btn_danger_class:          'btn btn-danger',
        btn_default_class:         'btn btn-default',
        btn_group_class:           'btn-group btn-group-sm',
        btn_primary_class:         'btn btn-primary',
        form_control_class:        'form-control',
        list_group_class:          'list-group',
        list_group_item_class:     'list-group-item',
        row_class:                 'row',
    )
    

The following REP internal class names have changed:

  • .rep-email-options is now .rep--email-options.
  • .rep-headers-list is now .rep--headers-list.
  • .rep-email-show is now .rep--email-show.
  • .breadcrumb is now .rep--breadcrumbs.
  • .breadcrumb .active is now .rep--breadcrumbs__active.
  • .rep-send-to-wrapper is gone, but now there is .rep--send-to-form.

All REP views are now wrapped in a div with the rep--main-container class.

REP no longer depends on slim and slim-rails.

Fixed minor email locale handling bugs in navigation and the CMS integration.