未验证 提交 b62b038d 编写于 作者: R Rafael França 提交者: GitHub

Revert "Include Caching module for ActionController::API"

上级 216ef01d
......@@ -117,7 +117,6 @@ def self.without_modules(*modules)
ApiRendering,
Renderers::All,
ConditionalGet,
Caching,
BasicImplicitRender,
StrongParameters,
......
......@@ -2216,19 +2216,6 @@ class Post < ActiveRecord::Base
assert_equal :default, Rails.configuration.debug_exception_response_format
end
test "action_controller.cache_store works for api_only app as well" do
add_to_config <<-RUBY
config.api_only = true
config.action_controller.cache_store = :memory_store
RUBY
app "development"
api_controller = Class.new(ActionController::API)
assert_equal(api_controller.cache_store.class, ActiveSupport::Cache::MemoryStore)
end
test "controller force_ssl declaration can be used even if session_store is disabled" do
make_basic_app do |application|
application.config.session_store :disabled
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册