We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9c22f commit a60a01cCopy full SHA for a60a01c
config/quickdraw.rb
@@ -16,6 +16,7 @@ class App < Rails::Application
16
config.secret_key_base = "secret-key"
17
config.action_dispatch.show_exceptions = :rescuable
18
config.active_support.to_time_preserves_timezone = :zone
19
+ config.action_controller.perform_caching = true
20
21
routes.append do
22
resources :posts
lib/phlex/rails/sgml.rb
@@ -104,6 +104,10 @@ def render(renderable = nil, &block)
104
end
105
106
107
+ def low_level_cache(*, **, &block)
108
+ Rails.application.config.action_controller.perform_caching ? super : yield
109
+ end
110
+
111
def render_in(view_context, &erb)
112
case view_context
113
when defined?(ViewComponent::Base) && ViewComponent::Base
0 commit comments