Skip to content

Commit 9013595

Browse files
authored
Merge pull request #575 from excid3/fix-caching-with-api-controllers
Fix regression in API controllers with view_cache_dependencies helper
2 parents 535327a + b928550 commit 9013595

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/jbuilder/railtie.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ module ApiRendering
2222
if name == 'ActionController::API'
2323
include ActionController::Helpers
2424
include ActionController::ImplicitRender
25+
helper_method :combined_fragment_cache_key
26+
helper_method :view_cache_dependencies
2527
end
2628
end
2729
end

0 commit comments

Comments
 (0)