Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

ActionMailer undefined method `perform_caching' #28

@firedev

Description

@firedev

It is impossible to include a partial with cache into email to be sent using ActionMailer.

ActionView::Template::Error (undefined method `perform_caching' for #<ContactMailer:0x007f8dc14f5578>):
1: <% cache [object, admin?] do %>
...

So I have added a helper to the mailer:

helper_method :cache
def cache *args
  yield
end

But this seems a bit half-assed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions