diff options
author | Javan Makhmali <javan@javan.us> | 2015-04-28 09:46:17 -0600 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2015-04-28 13:56:42 -0600 |
commit | 20f6f646d130ed3ef28f3632a76ab2502ea3b209 (patch) | |
tree | 38843c00e063c6e593d4af322ea8795839c7f290 /actionview/lib | |
parent | 7bc45df1823c3aa02afc56c850c07fe2e6c1b66c (diff) | |
download | rails-20f6f646d130ed3ef28f3632a76ab2502ea3b209.tar.gz rails-20f6f646d130ed3ef28f3632a76ab2502ea3b209.tar.bz2 rails-20f6f646d130ed3ef28f3632a76ab2502ea3b209.zip |
Make ActionMailer #cache helper a no-op, not an exception
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/cache_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/cache_helper.rb b/actionview/lib/action_view/helpers/cache_helper.rb index 0e2a5f90f4..4fe21ca05b 100644 --- a/actionview/lib/action_view/helpers/cache_helper.rb +++ b/actionview/lib/action_view/helpers/cache_helper.rb @@ -134,7 +134,7 @@ module ActionView # # <%= render @notifications, cache: false %> def cache(name = {}, options = nil, &block) - if controller.perform_caching + if controller.respond_to?(:perform_caching) && controller.perform_caching safe_concat(fragment_for(cache_fragment_name(name, options), options, &block)) else yield |